Given an instance of PropertyInfo that has a Type property, how do I determine if this is a structure? I found that there are properties like IsPrimitive , IsInterface , etc., but I'm not sure how to query the structure?
EDIT: Clarify the question. Suppose I have a method:
public Boolean Check(PropertyInfo pi) { return pi.Type.IsStruct; }
What do I write instead of IsStruct ?
Dejan staniΔ
source share