Click or drag to resize
SearchResultFieldValueComparerCompare Method
Compares two search results' specified field values and returns an indication of their relative values.

Currently only the following field names are allowed: sco (score), usc (usage count), usd (last used date), crd (creation date), chd (change date).

If a field name is used which is not listed above, Compare will return zero.

Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntax
public int Compare(
	SearchResult a,
	SearchResult b,
	string fieldName
)

Parameters

a
Type: Sdl.LanguagePlatform.TranslationMemorySearchResult
The first of the two items to compare.
b
Type: Sdl.LanguagePlatform.TranslationMemorySearchResult
The second of the two items to compare.
fieldName
Type: SystemString
The field used for comparison.

Return Value

Type: Int32
Less 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.

Implements

IFieldValueComparerTCompare(T, T, String)
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments