System.IEquatable<T> Interface

public interface IEquatable<T>

Assembly

mscorlib

Library

BCL

Summary

Defines generalized equality methods that a value type or class implements to create a type-specific equality method.

Description

This interface is implemented by types whose values can be ordered; for example, the numeric and string classes.

See Also

System Namespace

Members

IEquatable<T> Methods

IEquatable<T>.Equals Method


IEquatable<T>.Equals Method

bool Equals(T obj)

Summary

Determines whether the specified object is equal to the current object.

Parameters

obj
The T to compare to the current instance.

Return Value

true if the specified object is equal to the current object; otherwise, false .

Description

[Note: It is up to the implementation to define equality.]

See Also

System.IEquatable<T> Interface, System Namespace