Returns an array of
FieldInfo objects that correspond to all fields of the current class.
Namespace: System.ReflectionAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax FieldInfo[] GetFields(
BindingFlags bindingAttr
)
Parameters
- bindingAttr
- Type: System.ReflectionBindingFlags
The binding attributes used to control the search.
Return Value
Type:
FieldInfoAn array of
FieldInfo objects containing all the field information for this reflection object that meets the search constraints specified in
bindingAttr.
See Also