title: Ignore collection properties in PropertyInfo
body: <p>I have a function with this code:</p>
  
  <pre><code>foreach (PropertyInfo propertyInfo in typeof(T).GetProperties()){
  //SOME CODE
  if (propertyInfo.CanWrite)
      propertyInfo.SetValue(myCopy, propertyInfo.GetValue(obj, null), null);
  }
  </code></pre>
  
  <p>I would avoid to check "collection" properties; to do this now I have insert this control:</p>
  
  <pre><code> if (propertyInfo.PropertyType.Name.Contains("List")
       || propertyInfo.PropertyType.Name.Contains("Enumerable")
       || propertyInfo.PropertyType.Name.Contains("Collection"))
       continue;
  </code></pre>
  
  <p>but, It don't like me!</p>
  
  <p>Which is a better way to do it?</p>