Export (0) Print
Expand All

StringComparer.IEqualityComparer.Equals Method

.NET Framework 4.5

Determines whether the specified objects are equal.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

bool IEqualityComparer.Equals(
	Object x,
	Object y
)

Parameters

x
Type: System.Object

The first object to compare.

y
Type: System.Object

The second object to compare.

Return Value

Type: System.Boolean
true if the specified objects are equal; otherwise, false.

Implements

IEqualityComparer.Equals(Object, Object)

ExceptionCondition
ArgumentException

x and y are of different types, and neither one can handle comparisons with the other.

This member is an explicit interface implementation. It can be used only when the StringComparer instance is cast to an IEqualityComparer interface.

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8
Show:
© 2014 Microsoft