[Mono-list] Another reflection issue
Tue, 8 Jan 2002 15:41:05 -0700
Anybody have a clue why this:
private static string GetKind(Type t)
if (t.IsClass) return "class";
if (t.IsInterface) return "interface";
// FIXME: IsEnum doesn't seem to return a correct value,
// and all enums end up in the XML as 'struct'
if (t.IsEnum) return "enum";
if (t.IsValueType) return "struct";
else return "UNKNOWN";
...would seem to indicate that IsEnum never returns true? (Enums always
come out as structs) If somebody else would try this and let me know if
they get the same result, I'd appreciate it.