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

FieldDefDeclaration.GetSystemField Method

Gets the system runtime field corresponding to the current field.

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 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