title: how to I get the class name when I am passing in a generic in my method?
body: <p>My method looks like:</p>
  
  <pre><code>public string DoObjectProperties&lt;T&gt;(T obj, string text)
  {
  
  }
  </code></pre>
  
  <p>Now from within the method, I need to get the string value of the class name that i pass into the method's 'obj' parameter.</p>
  
  <p>So if I pass in the User object, I need the text 'user'.</p>
  
  <p>To get the properties I am using: <code>typeof(T).GetProperties()</code></p>
  
  <p>How can I get the classes name?</p>