title: Get all types of properties for an object
body: <p>I have an object with some types of properties:</p>
  
  <pre><code>public class MyClass
  {
      public List&lt;SomeObj&gt; List { get; set; }
      public int SomeKey { get; set; }
      public string SomeString { get; set; }
  }
  
  var obj = new MyClass();
  </code></pre>
  
  <p>What is the best way to get all types of properties for <code>obj</code> instance of the <code>MyClass</code> ?<br>
  For example:</p>
  
  <pre><code>obj.GetAllPropertiesTypes() //int, string, List&lt;&gt;
  obj.HasPropertyType("int")  //True
  </code></pre>