PublicApiField Class

A field, a constant, or an enum member.

public sealed class PublicApiField : PublicApiMember
Inheritance
PublicApiMember PublicApiField

Properties

NameDescription
ConstantValueGets the value of a constant, as stored in metadata. Enum members and constants of an enum type store the underlying integral value. A Decimal constant is read from the DecimalConstantAttribute of the field.
HasConstantValue
IsConst
IsReadOnlyGets a value indicating whether the field is readonly. For a ref field, it means the reference cannot be reassigned.
IsRequired
IsVolatile
Kind
RefKindGets PublicApiRefKind.Ref or PublicApiRefKind.RefReadOnly for a ref field of a ref struct.
Type

ConstantValue

PublicApiField.cs

Gets the value of a constant, as stored in metadata. Enum members and constants of an enum type store the underlying integral value. A Decimal constant is read from the DecimalConstantAttribute of the field.

public object? ConstantValue { get; }

Property value

object?

HasConstantValue

PublicApiField.cs
public bool HasConstantValue { get; }

Property value

bool

No documentation is available.

public bool IsConst { get; }

Property value

bool

No documentation is available.

Gets a value indicating whether the field is readonly. For a ref field, it means the reference cannot be reassigned.

public bool IsReadOnly { get; }

Property value

bool

public bool IsRequired { get; }

Property value

bool

No documentation is available.

public bool IsVolatile { get; }

Property value

bool

No documentation is available.

public override PublicApiSymbolKind Kind { get; }

Property value

PublicApiSymbolKind

No documentation is available.

Gets PublicApiRefKind.Ref or PublicApiRefKind.RefReadOnly for a ref field of a ref struct.

public PublicApiRefKind RefKind { get; }

Property value

PublicApiRefKind

public PublicApiTypeReference Type { get; }

No documentation is available.