| IFieldValueComparerTCompare Method |
Compares two objects' specified field values and returns an indication of their relative values.
Namespace: Sdl.LanguagePlatform.TranslationMemoryAssembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntaxint Compare(
T a,
T b,
string fieldName
)
Function Compare (
a As T,
b As T,
fieldName As String
) As Integer
int Compare(
T a,
T b,
String^ fieldName
)
abstract Compare :
a : 'T *
b : 'T *
fieldName : string -> int
Parameters
- a
- Type: T
The first of the two items to compare. - b
- Type: T
The second of the two items to compare. - fieldName
- Type: SystemString
The field used for comparison.
Return Value
Type:
Int32Less than zero if a is less than b, zero if a equals b or a value greater than zero if a is greater than b.
See Also
Comments