Click or drag to resize
TypeGetFields Method
Returns all the public fields of the current Type.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public FieldInfo[] GetFields()

Return Value

Type: FieldInfo
An array of FieldInfo objects representing all the public fields defined for the current Type.-or- An empty array of type FieldInfo, if no public fields are defined for the current Type.
See Also