Check out example codes for "check property type of collection c#". It will help you in understanding the concepts better.
Code Example 1
var obj = new PropClassDemo();
foreach (PropertyInfo prop in obj.GetType().GetProperties())
{
if(prop.PropertyType != typeof(string) && typeof(IEnumerable).IsAssignableFrom(prop.PropertyType))
{
Console.Writeline("This prop's type is Ienumerable");
}
}
//Note: string is an ienumerable too
Learn ReactJs, React Native from akashmittal.com