TessaCompilationObjectCacheDependencyComparerCompare - метод

When overridden in a derived class, performs a comparison of two objects of the same type and returns a value indicating whether one object is less than, equal to, or greater than the other.

Definition

Пространство имён: Tessa.Compilation
Сборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
public override int Compare(
	ITessaCompilationObjectCacheCore? x,
	ITessaCompilationObjectCacheCore? y
)

Параметры

x  ITessaCompilationObjectCacheCore
The first object to compare.
y  ITessaCompilationObjectCacheCore
The second object to compare.

Возвращаемое значение

Int32
A signed integer that indicates the relative values of x and y, as shown in the following table.
Value Meaning
Less than zerox is less than y.
Zerox equals y.
Greater than zerox is greater than y.

Реализации

IComparerTCompare(T, T)

Исключения

ArgumentExceptionType
C#
T
does not implement either the IComparableT generic interface or the IComparable interface.

См. также