Attributes of a field specify information about accessibility, contract information, interoperation attributes, as well as information on special handling.
The following subclauses contain additional information on each group of predefined attributes of a field.
FieldAttr ::= | Description | Clause |
---|---|---|
assembly |
Assembly accessibility. | §II.16.1.1 |
| famandassem |
Family and Assembly accessibility. | §II.16.1.1 |
| family |
Family accessibility. | §II.16.1.1 |
| famorassem |
Family or Assembly accessibility. | §II.16.1.1 |
| initonly |
Marks a constant field. | §II.16.1.2 |
| literal |
Specifies metadata field. No memory is allocated at runtime for this field. | §II.16.1.2 |
| marshal '(' NativeType ')' |
Marshaling information. | §II.16.1.3 |
| notserialized |
Reserved (indicates this field is not to be serialized). | §II.16.1.2 |
| private |
Private accessibility. | §II.16.1.1 |
| compilercontrolled |
Compiler controlled accessibility. | §II.16.1.1 |
| public |
Public accessibility. | §II.16.1.1 |
| rtspecialname |
Special treatment by runtime. | §II.16.1.4 |
| specialname |
Special name for other tools. | §II.16.1.4 |
| static |
Static field. | §II.16.1.2 |