title: Get DisplayName from resource file
body: <p>I have culture specific resource files in App_GlobalResources folder. Now I need to read value of the DisplayName attribute from this resource files. I am using:</p>
  
  <pre><code>[Display(Name = "MerchantName", ResourceType = typeof(Resource))]
  public string Merchant { get; set; }
  </code></pre>
  
  <p>but I am getting the following error:</p>
  
  <blockquote>
    <p>Cannot retrieve property 'Name' because localization failed.  Type 'Resources.Resource' is not public or does not contain a public static string property with the name 'MerchantName'.</p>
  </blockquote>
  
  <p>How do I solve this problem?</p>