How to display the name of enum display attribute
<p>This is my enum.</p>

<pre><code>public enum ContractType
{
    [Display(Name = "Permanent")]
    Permanent= 1,

    [Display(Name = "Part Time")]
    PartTime= 2,

}
</code></pre>

<p>I try to get display name using below code.</p>

<pre><code> string x = Enum.GetName(typeof(ContractType), 2);
</code></pre>

<p>But it is return "<strong>PartTime</strong>" always. Actually I want to get the name of display attribute. 
For above example x should be assigned <strong>Part Time</strong></p>

<p>I saw there are solutions which having huge code. Doesn't this have a simple/one line solution? </p>

<p>Please show me a direction.</p>