PublicApiTypeReference Class

A reference to a type, as it appears in a signature, a base type list, a constraint or an attribute argument.

public abstract class PublicApiTypeReference : IEquatable<PublicApiTypeReference>

Remarks

Type references support structural equality, which includes nullable annotations and tuple element names, but not PublicApiNamedTypeReference.AssemblyName as types are commonly forwarded between assemblies.

Implements

Properties

NameDescription
Kind
NullableAnnotationGets the nullable annotation of this type. Nested types (type arguments, element types) carry their own annotation.

Kind

public abstract PublicApiTypeReferenceKind Kind { get; }

No documentation is available.

NullableAnnotation

PublicApiTypeReference.cs

Gets the nullable annotation of this type. Nested types (type arguments, element types) carry their own annotation.

public PublicApiNullableAnnotation NullableAnnotation { get; }

Methods

NameDescription
Equals(PublicApiTypeReference?)
Equals(object?)
GetHashCode()
ToString()Returns the C# representation of the type.

Equals overloads

Equals(PublicApiTypeReference?)

PublicApiTypeReference.cs
public bool Equals(PublicApiTypeReference? other)
Parameters
other PublicApiTypeReference?
Returns

bool

No documentation is available.

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

public override int GetHashCode()

Returns

int

No documentation is available.

Returns the C# representation of the type.

public override string ToString()

Returns

string