New to Telerik UI for WinForms? Start a free 30-day trial

Compares PivotGrid values using numeric precision when possible and IComparable semantics otherwise.

Definition

Namespace:Telerik.Pivot.Core

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
public class PivotDefaultComparer : IComparer

Inheritance: objectPivotDefaultComparer

Implements: IComparer

Constructors

C#
public PivotDefaultComparer()

Methods

Attempts numeric and IComparable comparison, using string representations if a comparison throws.

C#
public int Compare(object x, object y)
Parameters:xobject

The first value to compare.

yobject

The second value to compare.

Returns:

int

A negative value if x sorts before y, a positive value if it sorts after, or zero if the values compare equal. An AggregateError compares as equal to any non-null value.

Implements: IComparer.Compare(object, object)