Check out example codes for "c# get list object type of generic list". It will help you in understanding the concepts better.

Code Example 1

Type type = pi.PropertyType;
if(type.IsGenericType && type.GetGenericTypeDefinition()
        == typeof(List<>))
{
    Type itemType = type.GetGenericArguments()[0]; // use this...
}

Learn ReactJs, React Native from akashmittal.com