System.Reflection.Module.GetFields Method

Returns the global fields defined on the module.

Syntax

public FieldInfo[] GetFields ()

Returns

An array of System.Reflection.FieldInfo objects representing the global fields defined on the module; if there are no global fields, an empty array is returned.

Remarks

The Module.GetFields method does not return fields in a particular order, such as alphabetical or declaration order. Your code must not depend on the order in which fields are returned, because that order can vary.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0