PublicApiProperty Class
A property or an indexer.
public sealed class PublicApiProperty : PublicApiMemberRemarks
The modifiers (PublicApiMember.IsStatic, PublicApiMember.IsVirtual...) and the accessibility come from the most accessible accessor. Accessors that are not part of the public API (e.g. a private set) are not exposed.
- Inheritance
PublicApiMemberPublicApiProperty
Properties
| Name | Description |
|---|---|
| GetMethod | |
| IsIndexer | |
| IsInitOnly | Gets a value indicating whether the property has an init accessor. |
| IsReadOnly | Gets a value indicating whether all the accessors of the property are readonly struct members. |
| IsRequired | |
| Kind | |
| Parameters | Gets the parameters of an indexer. It is empty for other properties. |
| RefKind | Gets the ref kind of a property that returns by reference (e.g. ref int Value { get; }). |
| SetMethod | |
| Type |
GetMethod
PublicApiProperty.csIsIndexer
PublicApiProperty.csIsInitOnly
PublicApiProperty.csIsReadOnly
PublicApiProperty.csIsRequired
PublicApiProperty.csParameters
PublicApiProperty.csGets the parameters of an indexer. It is empty for other properties.
public ImmutableArray<PublicApiParameter> Parameters { get; }Property value
RefKind
PublicApiProperty.csGets the ref kind of a property that returns by reference (e.g. ref int Value { get; }).
public PublicApiRefKind RefKind { get; }