Returns an array whose elements reflect the public and, if specified, non-public Get, Set, and other accessors of the property reflected by the current instance.
- nonPublic
- A bool value that indicates whether non-public accessors will be included in the return value. Specify true to include the non-public accessors; otherwise, specify false .
An array of System.Reflection.MethodInfo objects whose elements reflect the Get, Set, and other accessors of the property reflected by the current instance. If nonPublic is true, this array contains public and non-public accessors. If nonPublic is false, this array contains only public accessors. If no accessors with the specified visibility are found, returns an array with zero elements.
Type Reason System.Security.Permissions.ReflectionPermission Requires permission to reflect non-public members of a type in loaded assemblies. See System.Security.Permissions.ReflectionPermissionFlag.TypeInformation.
Operation
As described above.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0