Compare() public method

Compares 2 objects by their properties, given on the constructor
public Compare ( object x, object y ) : int
x object First value to compare
y object Second value to compare
return int
コード例 #1
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(TimestampPk a, TimestampPk b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
コード例 #2
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(AwBuildVersion a, AwBuildVersion b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
コード例 #3
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(NullFkeyChild a, NullFkeyChild b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
コード例 #4
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(TestVariant a, TestVariant b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
コード例 #5
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(Illustration a, Illustration b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
コード例 #6
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(TestIssue117Tableb a, TestIssue117Tableb b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
コード例 #7
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(ProductCategory a, ProductCategory b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
コード例 #8
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(JobCandidate a, JobCandidate b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
コード例 #9
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(ScrapReason a, ScrapReason b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
コード例 #10
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(ContactType a, ContactType b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }