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><exception cref="T:System.ArgumentException">Neither <paramref name="x"/> nor <paramref name="y"/> implements the <see cref="T:System.IComparable"/> interface.-or- <paramref name="x"/> and <paramref name="y"/> are of different types and neither one can handle comparisons with the other. </exception><filterpriority>2</filterpriority>
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(object x, object y)
            {
                var xSearchCriteria = x as SearchCriteria;
                var ySearchCriteria = y as SearchCriteria;
                if (xSearchCriteria == null && ySearchCriteria != null)
                {
                    return -1;
                }
                if (xSearchCriteria != null && ySearchCriteria == null)
                {
                    return 1;
                }
                return Compare(xSearchCriteria, ySearchCriteria);
            }
public int Compare ( object x , object y ) { var xSearchCriteria = x as SearchCriteria ; var ySearchCriteria = y as SearchCriteria ; if ( xSearchCriteria == null && ySearchCriteria != null ) { return - 1 ; } if ( xSearchCriteria != null && ySearchCriteria == null ) { return 1 ; } return Compare ( xSearchCriteria , ySearchCriteria ) ; }
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 .
Neither  nor  implements the  interface.-or-  and  are of different types and neither one can handle comparisons with the other.
Neither nor implements the interface . - or - and are of different types and neither one can handle comparisons with the other .
x
object
The first object to compare.
The first object to compare .
y
object
The second object to compare.
The second object to compare .
filterpriority
None