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

MethodDefDeclaration.GetSystemMethod Method (Type[], Type[])

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
)

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.

Return Value

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

Implements

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