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 | FamilyAndAssemblySpecifies the field can only be accessed by members in the same assembly.
Family = 4Specifies the field can only be accessed by this type and sub-types.
FamilyAndAssembly = 2Specifies the field can only be accessed by sub-types in the same assembly.
FamilyOrAssembly = Private | FamilySpecifies the field can only be accessed by sub-types and anyone in the assembly.
FieldAccessMask = Private | PublicThe bitmask that is being used to get the access level of the field.
HasDefault = 32768Specifies the field has got a default value.
HasFieldMarshal = 4096Specifies the field has got marshalling information.
HasFieldRva = 256Specifies the field has got an RVA.
InitOnly = 32Specifies the field can only be initialized and not being written after the initialization.
Literal = 64Specifies the field's value is at compile time constant.
NotSerialized = 128Specifies the field does not have to be serialized when the type is remoted.
PInvokeImpl = 8192Specifies the field is an implementation that is being forwarded through PInvoke.
Private = 1Specifies the field can only be accessed by its declaring type.
PrivateScope = 0Specifies the field cannot be referenced.
Public = FamilyAndAssembly | FamilySpecifies the field can be accesed by anyone who has visibility to this scope.
ReservedMask = HasFieldRva | RuntimeSpecialName | HasFieldMarshal | HasDefaultReserved flags for runtime use only.
RuntimeSpecialName = 1024Specifies the runtime should check the name encoding.
SpecialName = 512Specifies the field uses a special name.
Static = 16Specifies the field can be accessed without requiring an instance.