Search Results for

    Show / Hide Table of Contents

    Class SearchResultFieldValueComparer

    Implements a comparer for search results.

    Inheritance
    object
    SearchResultFieldValueComparer
    Implements
    IFieldValueComparer<SearchResult>
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    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.

    Implements

    IFieldValueComparer<T>
    In this article
    • Constructors
      • SearchResultFieldValueComparer()
    • Methods
      • Compare(SearchResult, SearchResult, string)
    • Implements
    Back to top Generated by DocFX