PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Method­Spec­Declaration Class / Method­Spec­Declaration Methods / Method­Spec­Declaration.​Get­System­Method Method / Method­Spec­Declaration.​Get­System­Method Method (Type[], Type[], Binding­Options)

MethodSpecDeclaration.GetSystemMethod Method (Type[], Type[], BindingOptions)

Gets the system runtime method corresponding to the current 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 MethodBase GetSystemMethod(
	Type[] genericTypeArguments,
	Type[] genericMethodArguments,
	BindingOptions bindingOptions
)

Parameters

genericTypeArguments
Type: System.Type[]
Array of generic type arguments valid in the current context.
genericMethodArguments
Type: System.Type[]
Array of generic method arguments valid in the current context.
bindingOptions
Type: PostSharp.Sdk.CodeModel.BindingOptions
Binding options.

Return Value

Type: MethodBase
The system runtime MethodBase, or null if the current method could not be bound.

Implements

IMethod.GetSystemMethod(Type[], Type[], BindingOptions)
See Also