public interface IEquatable<T>
mscorlib
BCL
Defines generalized equality methods that a value type or class implements to create a type-specific equality method.
This interface is implemented by types whose values can be ordered; for example, the numeric and string classes.
System Namespace
IEquatable<T> Methods
bool Equals(T obj)
Determines whether the specified object is equal to the current object.
- obj
- The
T
to compare to the current instance.
true
if the specified object is equal to the current object; otherwise,false
.
[Note: It is up to the implementation to define equality.]
System.IEquatable<T> Interface, System Namespace