Class SortComparer
Class used to compare and sort the given collection.
Inheritance
System.Object
SortComparer
Implements
System.Collections.Generic.IComparer<System.Object>
Namespace: Syncfusion.XlsIO.Implementation.PivotAnalysis
Assembly: Syncfusion.XlsIO.Portable.dll
Syntax
public class SortComparer : Object, 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<>