📅  最后修改于: 2022-03-11 14:49:11.289000             🧑  作者: Mango
Type type = pi.PropertyType;
if(type.IsGenericType && type.GetGenericTypeDefinition()
== typeof(List<>))
{
Type itemType = type.GetGenericArguments()[0]; // use this...
}