Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Interface

EquatableTo<T>

interface EquatableTo<in T>

Module: System
Assembly: System.Runtime.dll
Source file: EquatableTo.rvn

Defines typed equality without imposing nullable or optional operands.

Type parameters

Name Description
T The operand type, which may be a value type or reference type.

Remarks

Equals takes T, not T?. A reference implementation need not accept null through this contract. Object.Equals(Object?) is a separate, explicitly null-aware boundary. Absence in domain APIs is represented with Optional when needed. Development: T is contravariant for reference conversions; value-type arguments remain exact.

Derived interfaces

Documented types in this API reference. Indirect relationships are marked.

Show 2 moreShow less

Implementing types

Documented types in this API reference. Indirect relationships are marked.

Show 53 moreShow less

Methods

1 item
Equals(other: T) -> bool Compares this instance with another value of the declared operand type. Defined by EquatableTo<T>.Equals · Required implementation (no default).