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.
- FunctionTypeInfo (indirect)
- GenericParameterTypeInfo (indirect)
- IntersectionTypeInfo (indirect)
- NominalTypeInfo (indirect)
- TupleTypeInfo (indirect)
Show less
- TypeInfo
- UnionTypeInfo (indirect)
Implementing types
Documented types in this API reference. Indirect relationships are marked.
Show less
- OtherArchitecture
- X64
- X86
- Boolean
- Byte
- Character
- KeyValuePair<K, V>
- ConsoleKeyInfo
- Decimal
- DistributionRelease
- Double
- Currency
- Money
- Index
- Int16
- Int32
- Int64
- IntPtr
- KernelRelease
- IPAddress
- IPv4Address (indirect)
- IPv6Address (indirect)
- OperatingSystem
- Android
- IOS
- Linux
- MacOS
- OtherOS
- Windows
- ProductVersion
- Range
- Ptr<T>
- SByte
- Single
- Path
- String
- Date
- Duration
- Instant
- LocalDateTime
- TimeOfDay
- TimeOffset
- TimeZone
- ZonedDateTime
- UInt16
- UInt32
- UInt64
- UIntPtr
- Uri
- HttpMethod
- HttpVersion
- MediaType
- WindowsVersion
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).