It returns different data between propertyInfo.PropertyType
and propertyInfo.GetType()
.
I want to know what different it is
var propInfo = dataModel.GetProperty("List<string>");
var test1 = propinfo.GetType().IsGenericType; // it returns false;
var test2 = propinfo.PropertyType.IsGenericType; // it returns true;
Please give me some idea.
Thank you.
Aucun commentaire:
Enregistrer un commentaire