Share via


IndexComparer.Compare Method

Definition

Overloads

Compare(IIndex, IIndex)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Compare(IReadOnlyIndex, IReadOnlyIndex)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Compare(IIndex, IIndex)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

public int Compare (Microsoft.EntityFrameworkCore.Metadata.IIndex x, Microsoft.EntityFrameworkCore.Metadata.IIndex y);
abstract member Compare : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Metadata.IIndex -> int
override this.Compare : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Metadata.IIndex -> int
Public Function Compare (x As IIndex, y As IIndex) As Integer

Parameters

x
IIndex

The first object to compare.

y
IIndex

The second object to compare.

Returns

A negative number if 'x' is less than 'y'; a positive number if 'x' is greater than 'y'; zero otherwise.

Implements

Applies to

Compare(IReadOnlyIndex, IReadOnlyIndex)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

public int Compare (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? x, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? y);
abstract member Compare : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex -> int
override this.Compare : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex -> int
Public Function Compare (x As IReadOnlyIndex, y As IReadOnlyIndex) As Integer

Parameters

x
IReadOnlyIndex

The first object to compare.

y
IReadOnlyIndex

The second object to compare.

Returns

A negative number if 'x' is less than 'y'; a positive number if 'x' is greater than 'y'; zero otherwise.

Implements

Applies to