struct and class (help!!!)

  • Thread starter Thread starter michael
  • Start date Start date
M

michael

How do I know whether a type is a struct or a class when
I use reflection.
for example:
Type[] t = dll.GetTypes();
t.IsClass is true for both struct and class, how do I
tell, please help !
 
michael said:
How do I know whether a type is a struct or a class when
I use reflection.
for example:
Type[] t = dll.GetTypes();
t.IsClass is true for both struct and class, how do I
tell, please help !


Use Type.IsValueType.
 
Back
Top