hi
lets say i have
var someValue = List<SomeClass>(); //SomeClass inherits from BaseClass
i want to get what type is in the list (eg SomeClass) and then find if it inherits from baseclass
this is what i have but its not working
PropertyInfo prop;
if(prop.PropertyType.GetGenericTypeDefinition().IsSubclassOf(typeof(BaseClass))
but GetGenericTypeDefinition doesn't do what i thought, and googling is getting me no where fast.
Any thoughts would e appriciated.