Class SearchResultFieldValueComparer
Implements a comparer for search results.
Implements
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public class SearchResultFieldValueComparer : IFieldValueComparer<SearchResult>
Constructors
SearchResultFieldValueComparer()
Declaration
public SearchResultFieldValueComparer()
Methods
Compare(SearchResult, SearchResult, string)
Compares two objects' specified field values and returns an indication of their relative values.
Declaration
public int Compare(SearchResult a, SearchResult b, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
SearchResult | a | The first of the two items to compare. |
SearchResult | b | The second of the two items to compare. |
string | fieldName | The field used for comparison. |
Returns
Type | Description |
---|---|
int | 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. |