Class SortComparer
Class used to compare and sort the given collection.
Inheritance
System.Object
SortComparer
Implements
System.Collections.Generic.IComparer<System.Object>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.PivotAnalysis.Base
Assembly: Syncfusion.PivotAnalysis.Base.dll
Syntax
public class SortComparer : IComparer<object>
Constructors
SortComparer(List<String>, List<String>, List<IComparer>, GetValueDelegate)
Constructor that holds the information needed to perform comparison operation while sorting the PivotFields.
Declaration
public SortComparer(List<string> propertyNames, List<string> formats, List<IComparer> comparers, GetValueDelegate GetValue)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.String> | propertyNames | |
System.Collections.Generic.List<System.String> | formats | |
System.Collections.Generic.List<System.Collections.IComparer> | comparers | |
GetValueDelegate | GetValue |
Methods
Compare(Object, Object)
Compares the different objects and populate the Pivot values based on the comparer assigned.
Declaration
public int Compare(object x, object y)
Parameters
Type | Name | Description |
---|---|---|
System.Object | x | |
System.Object | y |
Returns
Type |
---|
System.Int32 |
Implements
System.Collections.Generic.IComparer<T>