PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Field­Ref­Declaration Class / Field­Ref­Declaration Methods / Field­Ref­Declaration.​Get­Field­Definition Method / Field­Ref­Declaration.​Get­Field­Definition Method (Binding­Options)

FieldRefDeclaration.GetFieldDefinition Method (BindingOptions)

Finds in the current domain the FieldDefDeclaration corresponding to the current field and specifies BindingOptions.

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 FieldDefDeclaration GetFieldDefinition(
	BindingOptions bindingOptions
)

Parameters

bindingOptions
Type: PostSharp.Sdk.CodeModel.BindingOptions
Binding options.

Return Value

Type: FieldDefDeclaration
The FieldDefDeclaration corresponding to the current instance in the current domain.

Implements

IField.GetFieldDefinition(BindingOptions)
See Also