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­Instance Method

FieldRefDeclaration.GetGenericInstance Method

Gets a generic instance of the current field.

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 IField GetGenericInstance(
	GenericMap genericMap
)

Parameters

genericMap
Type: PostSharp.Sdk.CodeModel.GenericMap
Generic arguments.

Return Value

Type: IField
A generic instance of the current field constructed using genericMap for generic arguments.

Implements

IField.GetGenericInstance(GenericMap)
See Also