title: How to get property of a class in Asp.net Core
body: <p>I have a model :</p>
  
  <pre><code>public class Message
  {
      public string CustomerName { get; set; }
      public DateTime Date { get; set; }
      public string RegistrationCode { get; set; }
  }
  </code></pre>
  
  <p>I want get its properties dynamically, in the previous version of <code>.Net</code> we do it by : <code>obj.GetType().GetProperties();</code> but in <code>.Net Core</code> we haven't <code>.GetProperties()</code>, How can i do it?</p>