System.Reflection.Emit.EnumBuilder.GetProperties Method

Returns all the public and non-public properties declared or inherited by this type, as specified.

Syntax

public override System.Reflection.PropertyInfo[] GetProperties (System.Reflection.BindingFlags bindingAttr)

Parameters

bindingAttr
This invocation attribute. This must be a bit flag from System.Reflection.BindingFlags : InvokeMethod, NonPublic, and so on.

Returns

Returns an array of System.Reflection.PropertyInfo objects representing the public and non-public properties defined on this type if nonPublic is used; otherwise, only the public properties are returned.

Remarks

As a workaround, to retrieve the properties of a finished type, retrieve the type using Type.GetType or System.Reflection.Assembly.GetType(string) and use reflection on the retrieved type.

Requirements

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