
Reflection: Getting fields in structure
Hi all
Is it possible to get to the fields/values inside a structure using
reflection ??
I have tried this :
private sub GetFields(obj as object)
dim Fields as FieldInfo()
dim ActField as FieldInfo
Fields = obj.gettype.getfields()
For each Field in Fields
debug.writeline(Field.name)
next
end sub
But this gets nothing
I have tried GetMembers, but all I get i four methods (GetHashCode, Equals,
ToString and GetType), the four Public methods of Object.
Is there some other way to do this ???
Thanks in advance
Allan Bredahl