PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Method­Def­Declaration Class / Method­Def­Declaration Methods / Method­Def­Declaration.​Get­Generic­Context Method

MethodDefDeclaration.GetGenericContext Method

Gets the GenericMap of 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 GenericMap GetGenericContext(
	GenericContextOptions options = GenericContextOptions.None
)

Parameters

options (Optional)
Type: PostSharp.Sdk.CodeModel.GenericContextOptions

[Missing <param name="options"/> documentation for "M:PostSharp.Sdk.CodeModel.MethodDefDeclaration.GetGenericContext(PostSharp.Sdk.CodeModel.GenericContextOptions)"]

Return Value

Type: GenericMap
The GenericMap of the current method.

Implements

IGeneric.GetGenericContext(GenericContextOptions)
See Also