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

FieldRefDeclaration.GetSystemField Method (Type[], Type[], BindingOptions)

Gets the system runtime field corresponding to 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 FieldInfo GetSystemField(
	Type[] genericTypeArguments,
	Type[] genericMethodArguments,
	BindingOptions options
)

Parameters

genericTypeArguments
Type: System.Type[]
Array of generic type arguments valid in the current context.
genericMethodArguments
Type: System.Type[]
Array of generic method arguments valid in the current context.
options
Type: PostSharp.Sdk.CodeModel.BindingOptions
Options.

Return Value

Type: FieldInfo
The system runtime FieldInfo, or null if the current field could not be bound.

Implements

IField.GetSystemField(Type[], Type[], BindingOptions)
See Also