Class CompareColumns
Implements utilities for comparing two records or columns.
Inheritance
Inherited Members
Namespace: Syncfusion.Grouping
Assembly: Syncfusion.Grouping.Base.dll
Syntax
public class CompareColumns
Constructors
CompareColumns()
Declaration
public CompareColumns()
Methods
CompareNullableObjects(SortColumnDescriptor, Object, Object)
Compares two nullbale objects.
Declaration
public static int CompareNullableObjects(SortColumnDescriptor columnDescriptor, object x, object y)
Parameters
Type | Name | Description |
---|---|---|
SortColumnDescriptor | columnDescriptor | Sort column descriptor. |
System.Object | x | First object to compare. |
System.Object | y | Second object to compare. |
Returns
Type | Description |
---|---|
System.Int32 | Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y. |
CompareNullableObjects(Object, Object)
Compare two nullable objects.
Declaration
public static int CompareNullableObjects(object x, object y)
Parameters
Type | Name | Description |
---|---|---|
System.Object | x | First object to compare. |
System.Object | y | Second object to compare. |
Returns
Type | Description |
---|---|
System.Int32 | Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y. |
ComparePrimaryKeys(Boolean, SortColumnDescriptor[], Object, Object)
Compares the primary keys for the two records specified with x and y.
Declaration
public static int ComparePrimaryKeys(bool isSorted, SortColumnDescriptor[] arrayOfColumnDescriptors, object x, object y)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isSorted | Specifies whether the values are sorted. |
SortColumnDescriptor[] | arrayOfColumnDescriptors | Array of sort column descriptors. |
System.Object | x | First record to compare. |
System.Object | y | Second record to compare. |
Returns
Type | Description |
---|---|
System.Int32 | Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y. |
CompareSortKeys(Boolean, SortColumnDescriptor[], Object, Object)
Compares the sort keys for the two records specified with x and y.
Declaration
public static int CompareSortKeys(bool isSorted, SortColumnDescriptor[] arrayOfColumnDescriptors, object x, object y)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isSorted | Specifies whether the values are sorted. |
SortColumnDescriptor[] | arrayOfColumnDescriptors | Array of sort column descriptors. |
System.Object | x | First record to compare. |
System.Object | y | Second record to compare. |
Returns
Type | Description |
---|---|
System.Int32 | Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y. |