title: C#: How to reflect a class to get its properties of pre defined data type
body: <p>I have a class 'Employee', it has following members:</p>
  
  <pre><code>//[membername,type]
  [Name,string]
  [DOB,DateTime]
  [DateOfHire,DateTime]
  [TerminationDate,DateTime?]
  [AddressChanges,List&lt;string&gt;]
  </code></pre>
  
  <p>Here, I need to reflect and get all the properties except the ones that are of collection type.</p>
  
  <p>In this example,except AddressChanges, I need to get all the members.</p>
  
  <p>Thanks.</p>