title: ASP.Net MVC 4 How to pass model property into view?
body: <p>For the first here an example of my code.
  Property in model: </p>
  
  <pre><code>[Display(Name = "My Name for Quantity")]
  public int Quantity { get; set; }  
  </code></pre>
  
  <p>Then i send some data from controller to view and in view i use:</p>
  
  <pre><code>Html.DisplayNameFor(model =&gt; model.Quantity)
  </code></pre>
  
  <p>From this one on above i get "My Name for Quantity".</p>
  
  <p>The question is. How to get original property name(Quantity) and property type(int)?</p>