Module.GetFields Method (System.Reflection) (original) (raw)
Source:
Source:
Source:
Source:
Returns the global fields defined on the module that match the specified binding flags.
public:
virtual cli::array <System::Reflection::FieldInfo ^> ^ GetFields(System::Reflection::BindingFlags bindingFlags);public:
cli::array <System::Reflection::FieldInfo ^> ^ GetFields(System::Reflection::BindingFlags bindingFlags);[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Fields might be removed")]
public virtual System.Reflection.FieldInfo[] GetFields(System.Reflection.BindingFlags bindingFlags);public virtual System.Reflection.FieldInfo[] GetFields(System.Reflection.BindingFlags bindingFlags);public System.Reflection.FieldInfo[] GetFields(System.Reflection.BindingFlags bindingFlags);[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Fields might be removed")>]
abstract member GetFields : System.Reflection.BindingFlags -> System.Reflection.FieldInfo[]
override this.GetFields : System.Reflection.BindingFlags -> System.Reflection.FieldInfo[]abstract member GetFields : System.Reflection.BindingFlags -> System.Reflection.FieldInfo[]
override this.GetFields : System.Reflection.BindingFlags -> System.Reflection.FieldInfo[]member this.GetFields : System.Reflection.BindingFlags -> System.Reflection.FieldInfo[]Public Overridable Function GetFields (bindingFlags As BindingFlags) As FieldInfo()Public Function GetFields (bindingFlags As BindingFlags) As FieldInfo()Parameters
Returns
An array of type FieldInfo representing the global fields defined on the module that match the specified binding flags; if no global fields match the binding flags, an empty array is returned.
Attributes
Remarks
The 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.