title: MVC Html.DisplayNameFor on a complex model
body: <p>I have a model with a complex type i.e. User/Addresses/List of Addresses</p>
  
  <pre><code>public class User{
  public List&lt;Address&gt; Addresses{get;set;}
  }
  </code></pre>
  
  <p>On my View I am displaying this</p>
  
  <pre><code>&lt;fieldset&gt;&lt;legend&gt;@Html.DisplayNameFor(model=&gt;model.Addresses)&lt;/legend&gt;
  &lt;table&gt;       
  &lt;tr&gt;
      &lt;th&gt;
          @Html.DisplayNameFor(m =&gt; Model.Addresses.Street)
      &lt;/th&gt;
      &lt;th&gt;
          @Html.DisplayNameFor(model =&gt; model.Addresses.City)
      &lt;/th&gt;
  &lt;th&gt;
          @Html.DisplayNameFor(model =&gt; model.Addresses.State)
      &lt;/th&gt;
  
      &lt;/tr&gt;
  @foreach (var item in Model.Addresses) {    
  &lt;tr&gt;
      &lt;td&gt;
          @Html.DisplayFor(m =&gt; item.Street)
      &lt;/td&gt;
      &lt;td&gt;
          @Html.DisplayFor(m =&gt; item.City)
      &lt;/td&gt;
      &lt;td&gt;
          @Html.DisplayFor(m =&gt; item.State)
      &lt;/td&gt;
  &lt;/tr&gt;
  } 
      &lt;/table&gt;&lt;/fieldset&gt;
  </code></pre>
  
  <p>The DisplayNameFor Street/City/State do not work.</p>
  
  <p>What is the proper way to get the DisplayNameFor on a sub object?</p>
  
  <p>TIA
  J</p>