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

TypeSpecDeclaration.GetGenericContext Method

Gets the generic context inside the scope of the generic instance.

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
)

Parameters

options
Type: PostSharp.Sdk.CodeModel.GenericContextOptions

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

Return Value

Type: GenericMap
A GenericMap mapping ordinals either to GenericParameterDeclaration (in case of generic definition), either of the type signature associated to this ordinal (in the case of generic instance).

Implements

IGeneric.GetGenericContext(GenericContextOptions)
See Also