- name
- The name of the field to get.
- bindingAttr
- This must be a bit flag from System.Reflection.BindingFlags : InvokeMethod, NonPublic, and so on.
Returns the System.Reflection.FieldInfo object representing the field declared or inherited by this type with the specified name and public or non-public modifier. If there are no matches, then null is returned.
As a workaround, to retrieve the field of a finished type, retrieve the type using Type.GetType or System.Reflection.Assembly.GetType(string) and use reflection on the retrieved type.