Try this code, several fields are not listed. (methodinfo, fieldinfo, field with list. The field with array is listed though.
Mark, is this a bug? FYI: I really need these in my unit test module to get dynamic adding of tests working. It would be great if it can be fixed.
#REFLECTION_FILTER="untitled*"
Import reflection
Function Main()
For Local c:= eachin GetClasses()
Print("Class: " + c.Name() )
For Local m:= eachin c.GetMethods(true)
Print(" Method: " + m.Name())
Next
For Local f:= eachin c.GetFields(true)
Print( " Field: " + f.Name())
Next
Next
End
Class aa
Method me()
End
Field fld:int
Field mei:MethodInfo
Field fii:FieldInfo
Field lis:= New List<Object>
Field arr:= new Int[10]
End
|