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
| Name | Description |
|---|---|
| Kind | |
| NullableAnnotation | Gets the nullable annotation of this type. Nested types (type arguments, element types) carry their own annotation. |
Kind
public abstract PublicApiTypeReferenceKind Kind { get; }Property value
No documentation is available.
NullableAnnotation
PublicApiTypeReference.csGets the nullable annotation of this type. Nested types (type arguments, element types) carry their own annotation.
public PublicApiNullableAnnotation NullableAnnotation { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(PublicApiTypeReference?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() | Returns the C# representation of the type. |
Equals overloads
Equals(PublicApiTypeReference?)
PublicApiTypeReference.cspublic bool Equals(PublicApiTypeReference? other)No documentation is available.