PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Method­Group­Declaration Class / Method­Group­Declaration Methods / Method­Group­Declaration.​Get­Accessor Method

MethodGroupDeclaration.GetAccessor Method

Gets an accessor method.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public MethodDefDeclaration GetAccessor(
	MethodSemantics semantic
)

Parameters

semantic
Type: PostSharp.Sdk.CodeModel.MethodSemantics
Semantic of the requested accessor method.

Return Value

Type: MethodDefDeclaration
The method of requested semantic, or null if the current MethodGroupDeclaration does not contain the requested semantic.
See Also