System.Reflection.PropertyInfo.GetAccessors Method

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

Syntax

public MethodInfo[] GetAccessors ()

Returns

An array of System.Reflection.MethodInfo objects that reflect the public get, set, and other accessors of the property reflected by the current instance, if found; otherwise, this method returns an array with zero (0) elements.

Remarks

This method is equivalent to PropertyInfo.GetAccessors(false).

Requirements

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