Share via


TypeBaseNameComparer.Compare(IReadOnlyTypeBase, IReadOnlyTypeBase) Method

Definition

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.IReadOnlyTypeBase? x, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase? y);
abstract member Compare : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase -> int
override this.Compare : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase -> int
Public Function Compare (x As IReadOnlyTypeBase, y As IReadOnlyTypeBase) As Integer

Parameters

x
IReadOnlyTypeBase

The first object to compare.

y
IReadOnlyTypeBase

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