PublicApiDeclarationSegment Class

A part of a formatted declaration, with the symbol or the type it refers to.

public sealed class PublicApiDeclarationSegment

Properties

NameDescription
Kind
SymbolGets the declared symbol for an PublicApiDeclarationSegmentKind.Identifier segment.
Text
TypeReferenceGets the type referenced by a PublicApiDeclarationSegmentKind.TypeName or a PublicApiDeclarationSegmentKind.TypeParameterName segment.
public PublicApiDeclarationSegmentKind Kind { get; }

No documentation is available.

Gets the declared symbol for an PublicApiDeclarationSegmentKind.Identifier segment.

public PublicApiSymbol? Symbol { get; }

Property value

PublicApiSymbol?

public string Text { get; }

Property value

string

No documentation is available.

public PublicApiTypeReference? TypeReference { get; }

Property value

PublicApiTypeReference?

Remarks

For a nested type, each level is a separate segment that references the corresponding PublicApiNamedTypeReference.ContainingType.

Methods

NameDescription
ToString()
public override string ToString()

Returns

string

No documentation is available.