Interface IFieldValueComparer<T>
Defines a generic method for comparing objects that expose fields.
Namespace: Sdl.LanguagePlatform.TranslationMemory
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. |
System.String | fieldName | The field used for comparison. |
Returns
Type | Description |
---|---|
System.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. |