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

FieldRefDeclaration.GetGenericContext Method

Gets the generic context of the declaring type, or an empty context if the member is contained by the module.

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 GenericMap GetGenericContext(
	GenericContextOptions options
)

Parameters

options
Type: PostSharp.Sdk.CodeModel.GenericContextOptions

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

Return Value

Type: GenericMap

[Missing <returns> documentation for "M:PostSharp.Sdk.CodeModel.FieldRefDeclaration.GetGenericContext(PostSharp.Sdk.CodeModel.GenericContextOptions)"]

Implements

IField.GetGenericContext(GenericContextOptions)
See Also