Skip to content
CShift0.32

IEquatable<T>

Interface · global namespace

interface IEquatable<T>

Equality for generic containers (List<T>.IndexOf, List<T>.Contains, the keys of a Dictionary).

Numbers, bool, char, enums and string implement it; a struct implements it by defining Equals.

Name Description
Equals Whether this value equals other.
bool Equals(T other)

Whether this value equals other.