Table of Contents

Method GetAccessors

Namespace
Microsoft.Samples.Debugging.CorMetadata
Assembly
corapi.dll

GetAccessors(bool)

Returns an array whose elements reflect the public and, if specified, non-public get and set accessors of the property reflected by the current instance.

public override MethodInfo[] GetAccessors(bool nonPublic)

Parameters

nonPublic bool

Indicates whether non-public methods should be returned in the returned array. true if non-public methods are to be included; otherwise, false.

Returns

MethodInfo[]

An array whose elements reflect the get and set accessors of the property reflected by the current instance. If nonPublic is true, this array contains public and non-public get and set accessors. If nonPublic is false, this array contains only public get and set accessors. If no accessors with the specified visibility are found, this method returns an array with zero (0) elements.