New to Telerik UI for WPFStart a free 30-day trial

Reference equality comparer.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class ReferenceEqualityComparer : IEqualityComparer<object>

Inheritance: objectReferenceEqualityComparer

Implements: IEqualityComparer<object>

Constructors

C#
public ReferenceEqualityComparer()

Methods

Determines whether the specified objects are equal.

C#
public bool Equals(object x, object y)
Parameters:xobject

The first object of type T to compare.

yobject

The second object of type T to compare.

Returns:

bool

true if the specified objects are equal; otherwise, false.

Implements: IEqualityComparer<object>.Equals(object, object)

Returns a hash code for the specified object.

C#
public int GetHashCode(object obj)
Parameters:objobject

The Object for which a hash code is to be returned.

Returns:

int

A hash code for the specified object.

Implements: IEqualityComparer<object>.GetHashCode(object)