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

Defines methods to support the comparison of IntervalBase objects for equality.

Definition

Namespace:Telerik.Windows.Controls.TimeBar

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class IntervalEqualityComparer : IEqualityComparer<IntervalBase>

Inheritance: objectIntervalEqualityComparer

Implements: IEqualityComparer<IntervalBase>

Constructors

C#
public IntervalEqualityComparer()

Methods

Determines whether the specified IntervalBase objects are equal.

C#
public bool Equals(IntervalBase x, IntervalBase y)
Parameters:xIntervalBase

The first IntervalBase to compare.

yIntervalBase

The second IntervalBase to compare.

Returns:

bool

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

Returns a hash code for the specified object.

C#
public int GetHashCode(IntervalBase obj)
Parameters:objIntervalBase

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

Returns:

int

A hash code for the specified IntervalBase.

Implements: IEqualityComparer<IntervalBase>.GetHashCode(IntervalBase)