PostSharp SDK 2023.0 / / 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[])

MethodSpecDeclaration.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: 2023.0.3.0 (2023.0.3.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