Interface IFieldValueComparer<T>
Defines a generic method for comparing objects that expose fields.
Namespace: SdlSdl.LanguagePlatformTranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public interface IFieldValueComparer<in T>
Type Parameters
Name | Description |
---|---|
T |
Methods
Compare(T, T, string)
Compares two objects' specified field values and returns an indication of their relative values.
Declaration
int Compare(T a, T b, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
T | a | The first of the two items to compare. |
T | 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. |