src/GenFx.Components/Lists/ListEntityBase.cs
/// <summary>
/// Compares the current object with another object of the same type.
/// </summary>
/// <param name="other">An object to compare with this object.</param>
/// <returns>
/// A value that indicates the relative order of the objects being compared. The
/// return value has the following meanings:
///  * Less than zero: This object is less than <paramref name="other"/>.
///  * Zero: This object is equal to <paramref name="other"/>.
///  * Greater than zero: This object is greater than <paramref name="other"/>.
///  </returns>
Compares the current object with another object of the same type.
Compares the current object with another object of the same type .
public override int CompareTo(GeneticEntity other)
        {
            if (other is null)
            {
                return 1;
            }
            if (!(other is ListEntityBase listEntityBase))
            {
                throw new ArgumentException(StringUtil.GetFormattedString(
                    Resources.ErrorMsg_ObjectIsWrongType, typeof(ListEntityBase)), nameof(other));
            }
            return ComparisonHelper.CompareLists(this, listEntityBase);
        }
public override int CompareTo ( GeneticEntity other ) { if ( other is null ) { return 1 ; } if ( ! ( other is ListEntityBase listEntityBase ) ) { throw new ArgumentException ( StringUtil . GetFormattedString ( Resources . ErrorMsg_ObjectIsWrongType , typeof ( ListEntityBase ) ) , nameof ( other ) ) ; } return ComparisonHelper . CompareLists ( this , listEntityBase ) ; }
Compares the current object with another object of the same type.
Compares the current object with another object of the same type .
A value that indicates the relative order of the objects being compared. The
return value has the following meanings:
Less than zero: This object is less than .
Zero: This object is equal to .
Greater than zero: This object is greater than .
A value that indicates the relative order of the objects being compared . The return value has the following meanings : Less than zero : This object is less than . Zero : This object is equal to . Greater than zero : This object is greater than .
other
GeneticEntity
An object to compare with this object.
An object to compare with this object .