PropertyElement Class
A property or an indexer.
public sealed class PropertyElement : MemberElement- Inheritance
MemberElementPropertyElement
Properties
| Name | Description |
|---|---|
| Accessibility | Gets the most permissive accessibility of the accessors. |
| Attributes | Gets the attributes applied to the member. |
| Getter | Gets the get accessor, or null. |
| IsInitOnly | Gets a value indicating whether the setter is an init accessor. |
| IsRequired | Gets a value indicating whether the property is required. |
| IsStatic | Gets a value indicating whether the member is static. |
| Location | Gets the first statement of the member when the PDB is available, or null. |
| Setter | Gets the set or init accessor, or null. |
| Type | Gets the type of the property. |
Accessibility
PropertyElement.csGets the most permissive accessibility of the accessors.
public override ElementAccessibility Accessibility { get; }Property value
Attributes
PropertyElement.csGets the attributes applied to the member.
public override IReadOnlyList<AttributeElement> Attributes { get; }Property value
Getter
PropertyElement.csIsInitOnly
PropertyElement.csIsRequired
PropertyElement.csIsStatic
PropertyElement.csLocation
PropertyElement.csGets the first statement of the member when the PDB is available, or null.
public override SourceLocation? Location { get; }