StringComparer.IEqualityComparer.Equals Method

.NET Framework (current version)

Determines whether the specified objects are equal.

Namespace:  System
Assembly:  System.Runtime.Extensions (in System.Runtime.Extensions.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.

.NET Framework

Supported in: 4.6

Portable Class Library

Supported in: Portable Class Library
Show: