src/GiveCRM.BusinessLogic.Tests/SearchService.Tests.cs
/// <summary>
/// Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
/// </summary>
/// <returns>
/// A signed integer that indicates the relative values of <paramref name="x"/> and <paramref name="y"/>, as shown in the following table.Value Meaning Less than zero<paramref name="x"/> is less than <paramref name="y"/>.Zero<paramref name="x"/> equals <paramref name="y"/>.Greater than zero<paramref name="x"/> is greater than <paramref name="y"/>.
/// </returns>
/// <param name="x">The first object to compare.</param><param name="y">The second object to compare.</param>
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Compares two objects and returns a value indicating whether one is less than equal to or greater than the other .
public int Compare(SearchCriteria x, SearchCriteria y)
            {
                int internalNameComparison = Comparer<string>.Default.Compare(x.InternalName, y.InternalName);
                if (internalNameComparison != 0)
                {
                    return internalNameComparison;
                }
                int displayNameComparison = Comparer<string>.Default.Compare(x.DisplayName, y.DisplayName);
                if (displayNameComparison != 0)
                {
                    return displayNameComparison;
                }
                return Comparer<SearchFieldType>.Default.Compare(x.Type, y.Type);
            }
public int Compare ( SearchCriteria x , SearchCriteria y ) { int internalNameComparison = Comparer < string > . Default . Compare ( x . InternalName , y . InternalName ) ; if ( internalNameComparison != 0 ) { return internalNameComparison ; } int displayNameComparison = Comparer < string > . Default . Compare ( x . DisplayName , y . DisplayName ) ; if ( displayNameComparison != 0 ) { return displayNameComparison ; } return Comparer < SearchFieldType > . Default . Compare ( x . Type , y . Type ) ; }
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Compares two objects and returns a value indicating whether one is less than equal to or greater than the other .
A signed integer that indicates the relative values of  and , as shown in the following table.Value Meaning Less than zero is less than .Zero equals .Greater than zero is greater than .
A signed integer that indicates the relative values of and as shown in the following table . Value Meaning Less than zero is less than . Zero equals . Greater than zero is greater than .
x
SearchCriteria
The first object to compare.
The first object to compare .
y
SearchCriteria
The second object to compare.
The second object to compare .