For a Type
, there is a property IsClass
, but how to know a Type
is a struct?
Sorry, I have to add some more information.
- I am using C#.
- Although
IsValueType
is a necessary condition, it is obviously not enough. For an Integer is a value type also.