Table of Contents

Enum FieldAttributes

Namespace
AsmResolver.PE.DotNet.Metadata.Tables
Assembly
AsmResolver.PE.dll

Provides members defining all flags that can be associated to a field definition.

[Flags]
public enum FieldAttributes : ushort

Fields

Assembly = Private | FamilyAndAssembly

Specifies the field can only be accessed by members in the same assembly.

Family = 4

Specifies the field can only be accessed by this type and sub-types.

FamilyAndAssembly = 2

Specifies the field can only be accessed by sub-types in the same assembly.

FamilyOrAssembly = Private | Family

Specifies the field can only be accessed by sub-types and anyone in the assembly.

FieldAccessMask = Private | Public

The bitmask that is being used to get the access level of the field.

HasDefault = 32768

Specifies the field has got a default value.

HasFieldMarshal = 4096

Specifies the field has got marshalling information.

HasFieldRva = 256

Specifies the field has got an RVA.

InitOnly = 32

Specifies the field can only be initialized and not being written after the initialization.

Literal = 64

Specifies the field's value is at compile time constant.

NotSerialized = 128

Specifies the field does not have to be serialized when the type is remoted.

PInvokeImpl = 8192

Specifies the field is an implementation that is being forwarded through PInvoke.

Private = 1

Specifies the field can only be accessed by its declaring type.

PrivateScope = 0

Specifies the field cannot be referenced.

Public = FamilyAndAssembly | Family

Specifies the field can be accesed by anyone who has visibility to this scope.

ReservedMask = HasFieldRva | RuntimeSpecialName | HasFieldMarshal | HasDefault

Reserved flags for runtime use only.

RuntimeSpecialName = 1024

Specifies the runtime should check the name encoding.

SpecialName = 512

Specifies the field uses a special name.

Static = 16

Specifies the field can be accessed without requiring an instance.