Type.GetFields Method ()
Gets the fields of the current type.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
public FieldInfo [] GetFields ()
Return Value
An array of FieldInfo objects representing all of the fields defined for the current type.
-or-
An empty FieldInfo array, if no fields are defined for the current type.
Remarks
The GetFields method does not return fields in a particular order, such as alphabetic or declaration order. Your code must not depend on the order in which fields are returned, because that order can vary.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.