PublicApiProperty Class

A property or an indexer.

public sealed class PublicApiProperty : PublicApiMember

Remarks

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
PublicApiMember PublicApiProperty

Properties

NameDescription
GetMethod
IsIndexer
IsInitOnlyGets a value indicating whether the property has an init accessor.
IsReadOnlyGets a value indicating whether all the accessors of the property are readonly struct members.
IsRequired
Kind
ParametersGets the parameters of an indexer. It is empty for other properties.
RefKindGets the ref kind of a property that returns by reference (e.g. ref int Value { get; }).
SetMethod
Type
public PublicApiMethod? GetMethod { get; }

Property value

PublicApiMethod?

No documentation is available.

public bool IsIndexer { get; }

Property value

bool

No documentation is available.

Gets a value indicating whether the property has an init accessor.

public bool IsInitOnly { get; }

Property value

bool

Gets a value indicating whether all the accessors of the property are readonly struct members.

public bool IsReadOnly { get; }

Property value

bool

public bool IsRequired { get; }

Property value

bool

No documentation is available.

public override PublicApiSymbolKind Kind { get; }

Property value

PublicApiSymbolKind

No documentation is available.

Gets the parameters of an indexer. It is empty for other properties.

public ImmutableArray<PublicApiParameter> Parameters { get; }

Gets the ref kind of a property that returns by reference (e.g. ref int Value { get; }).

public PublicApiRefKind RefKind { get; }

Property value

PublicApiRefKind

public PublicApiMethod? SetMethod { get; }

Property value

PublicApiMethod?

No documentation is available.

public PublicApiTypeReference Type { get; }

No documentation is available.