Class Comparer
Compares the values of the objects.
Inheritance
System.Object
Comparer
Implements
System.Collections.IComparer
Namespace: Syncfusion.Maui.DataSource
Assembly: Syncfusion.Maui.DataSource.dll
Syntax
public sealed class Comparer : Object, IComparer
Constructors
Comparer(CultureInfo)
Initializes a new instance of the Comparer class.
Declaration
public Comparer(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | Represents the current culture info. |
Methods
Compare(Object, Object)
Comparison between the objects.
Declaration
public int Compare(object a, object b)
Parameters
Type | Name | Description |
---|---|---|
System.Object | a | Represents object a. |
System.Object | b | Represents object b. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the integer value. |
Implements
System.Collections.IComparer