ModelCollationComparer<T>.Compare Method

Compares two objects using collation of this comparer.

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public MustOverride Function Compare ( _
    x As T, _
    y As T _
) As Integer
'Usage
Dim instance As ModelCollationComparer
Dim x As T
Dim y As T
Dim returnValue As Integer

returnValue = instance.Compare(x, y)
public abstract int Compare(
    T x,
    T y
)
public:
virtual int Compare(
    T x, 
    T y
) abstract
public abstract function Compare(
    x : T, 
    y : T
) : int
abstract Compare : 
        x:'T * 
        y:'T -> int 

Parameters

  • x
    Type: T
    Source object
  • y
    Type: T
    Target object

Return Value

Type: System.Int32

Implements

IComparer<T>.Compare(T, T)

.NET Framework Security

See Also

Reference

ModelCollationComparer<T> Class

ModelCollationComparer<T> Members

Microsoft.Data.Schema.SchemaModel Namespace