C# .NET - foreach adding lambda to filter property types

Asked By Corey on 24-May-13 03:15 PM
I have a loop
foreach (PropertyInfo sourcePropertyInfo in source.GetType().GetProperties())


I want to filter the loop so it only loops through PropertyType of string, int, datetime, etc

..basically wanting it to not loop through my user defined types.