FieldElement Class
A field.
public sealed class FieldElement : MemberElement- Inheritance
MemberElementFieldElement
Properties
| Name | Description |
|---|---|
| Accessibility | Gets the declared accessibility of the member. |
| Attributes | Gets the attributes applied to the member. |
| IsConstant | Gets a value indicating whether the field is a constant (const, or a value of an enum). |
| IsReadOnly | Gets a value indicating whether the field is readonly. |
| IsStatic | Gets a value indicating whether the member is static. |
| Location | Gets null: a field has no code, so the PDB records no location for it. |
| Type | Gets the type of the field. |
Accessibility
FieldElement.csGets the declared accessibility of the member.
public override ElementAccessibility Accessibility { get; }Property value
Attributes
FieldElement.csGets the attributes applied to the member.
public override IReadOnlyList<AttributeElement> Attributes { get; }Property value
IsConstant
FieldElement.csIsReadOnly
FieldElement.csIsStatic
FieldElement.csLocation
FieldElement.csGets null: a field has no code, so the PDB records no location for it.
public override SourceLocation? Location { get; }