Method GetFieldRecursively
GetFieldRecursively(Type, string, BindingFlags)
Gets a specific field of the Type or any of its base Types.
Declaration
public static FieldInfo GetFieldRecursively(this Type type, string name, BindingFlags bindingAttr)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type which will be searched for fields. |
| string | name | Name of the field to get. |
| BindingFlags | bindingAttr | A bitmask specifying how the search is conducted. |
Returns
| Type | Description |
|---|---|
| FieldInfo | An object representing the field that matches the specified requirements, if found; otherwise, |