Compares the two items and returns an indication of their relative value.
Namespace: Sdl.LanguagePlatform.TranslationMemoryAssembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntaxpublic int Compare(
T x,
T y
)
Public Function Compare (
x As T,
y As T
) As Integer
public:
virtual int Compare(
T x,
T y
) sealed
abstract Compare :
x : 'T *
y : 'T -> int
override Compare :
x : 'T *
y : 'T -> int Parameters
- x
- Type: T
The first of the two items to compare. - y
- Type: T
The second of the two items to compare.
Return Value
Type:
Int32Less than zero if x is less than y, zero if x equals y, greater than zero if x is greater than y.
Implements
IComparerTCompare(T, T)
See Also
Comments