PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Field­Def­Declaration Class / Field­Def­Declaration Properties

FieldDefDeclaration Properties

The FieldDefDeclaration type exposes the following members.

Properties
  NameDescription
Public propertyAttributes
Gets or sets the field attributes.
Public propertyCustomDebuggingInformation (Inherited from Declaration.)
Public propertyDeclaringType
Gets the type declaring the current field.
Public propertyFieldType
Gets or set the field type.
Public propertyInitialValue
Gets or sets the DataSectionDeclaration used to initialize the field.
Public propertyIsConst
Determines whether the field is constant (i.e. literal).
Public propertyIsOriginal
Determines whether the current declaration existed in the source assembly.
(Inherited from MetadataDeclaration.)
Public propertyIsReadOnly
Determines whether the field is read-only (i.e. init only).
Public propertyIsStatic
Determines whether the current member is static.
Public propertyLiteralValue
Gets the value of the literal field.
Public propertyMarshalType
Gets or sets the MarshalType of the field.
Public propertyMetadataToken
Gets or sets the token of the current declaration.
(Inherited from MetadataDeclaration.)
Public propertyName
Gets or sets the name of the current declaration.
(Inherited from NamedMetadataDeclaration.)
Public propertyOffset
Gets or sets the offset of the current field in the type layout.
Public propertyOrdinal (Inherited from NamedPositionedMetadataDeclaration.)
Public propertyOriginalDeclaration
When the declaration represents another declaration in the source assembly, this property refers to this declaration. When using GetReflectionObject(Type[], Type[], BindingOptions), the original declaration should actually be retrieved.
(Inherited from MetadataDeclaration.)
Public propertyOriginalName (Inherited from NamedMetadataDeclaration.)
Public propertyParentMember
Gets the parent member of the current declaration.
(Overrides MetadataDeclaration.ParentMember.)
Public propertyParentType
Gets the parent type of the current declaration.
(Overrides MetadataDeclaration.ParentType.)
Public propertyVisibility
Gets the field visibility.
See Also