Are you looking for integral types for BCL? Or just type values? (Integer IE, char, etc.)
If so, you can check for pi.PropertyType.IsPrimitive () and then check the type of the string as part of the sentence or ...
var props = sourceType.GetProperties() .Where(pi => .PropertyType.IsPrimitive || pi.PropertyType == typeof(string))
Kilanash Jul 01 2018-10-10T00: 00Z
source share