Method GetGetMethod
- Namespace
- Microsoft.Samples.Debugging.CorMetadata
- Assembly
- corapi.dll
GetGetMethod(bool)
When overridden in a derived class, returns the public or non-public get accessor for this property.
public override MethodInfo GetGetMethod(bool nonPublic)
Parameters
nonPublic
boolIndicates whether a non-public get accessor should be returned. true if a non-public accessor is to be returned; otherwise, false.
Returns
- MethodInfo
A MethodInfo object representing the get accessor for this property, if
nonPublic
is true. Returns null ifnonPublic
is false and the get accessor is non-public, or ifnonPublic
is true but no get accessors exist.
Exceptions
- SecurityException
The requested method is non-public and the caller does not have ReflectionPermission to reflect on this non-public method.