A
Achim Domma
Hi,
I'm analyzing the fields of an object like this:
foreach (FieldInfo info in obj.GetType().GetFields()) {
...
}
Some of the fields are arrays, so I check for info.IsArray which works
fine and info.FieldType contains MyType[] for example. But how do I get
the base type of the array, i.e. MyType? Must be simple, but I could not
figure out how to do it!?
regards,
Achim
I'm analyzing the fields of an object like this:
foreach (FieldInfo info in obj.GetType().GetFields()) {
...
}
Some of the fields are arrays, so I check for info.IsArray which works
fine and info.FieldType contains MyType[] for example. But how do I get
the base type of the array, i.e. MyType? Must be simple, but I could not
figure out how to do it!?
regards,
Achim