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

FieldDefDeclaration.GetGenericContext Method

Gets the generic context of the declaring type.

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.FieldDefDeclaration.GetGenericContext(PostSharp.Sdk.CodeModel.GenericContextOptions)"]

Return Value

Type: GenericMap
The generic context of the declaring type, or an empty context if the current field is declared at module level.

Implements

IField.GetGenericContext(GenericContextOptions)
See Also