title: Get [Display] attribute value from resource in MVC
body: <p>I have used the <code>[Display]</code> attribute for one of my enums:</p>
  
  <pre><code>    public enum eCommentType
      {
          [Display(ResourceType = typeof(FaultManagementStrings), Name = "NormalComment")]
          NormalComment = 0,
  
          [Display(ResourceType = typeof(FaultManagementStrings), Name = "OpenningComment")]
          OpenningComment = 1,
  
          [Display(ResourceType = typeof(FaultManagementStrings), Name = "StartProgressComment")]
          StartProgressComment = 2,
  
          [Display(ResourceType = typeof(FaultManagementStrings), Name = "ClouserComment")]
          ClouserComment = 3,
  
          [Display(ResourceType = typeof(FaultManagementStrings), Name = "ReopennignComment")]
          ReopennignComment = 4
      }
  </code></pre>
  
  <p>Is it possible to create an Extention method that will reuse the exsisting MVC finctionallity of getting the Display attribute value from the specified resource ?</p>
  
  <p>I would what something like that...</p>
  
  <pre><code>@Html.GetEnumDisplayAttributeValue(c=&gt; comment.CommentType)
  </code></pre>
  
  <p>I know i could wirte something that will implement the required reflection and find the value of the resource type and the call resource manager and so on... but i think that maybe it is possible to use the exsisting built in functionally of mvc.. after all it is already done when you call a <code>LabelFor</code> helper.</p>
  
  <p>is is possible or should i reinvent the wheel ?</p>