src/NeinMath/Integer.cs
/// <summary>
/// Compares the Integer to a specified object and returns an integer
/// that indicates whether the value of the Integer is less than, equal
/// to, or greater than the value of the specified object.
/// </summary>
/// <param name="obj">The object to compare.</param>
/// <returns>
/// An integer that indicates the relationship of the Integer to the
/// obj parameter.
/// </returns>
Compares the Integer to a specified object and returns an integer
that indicates whether the value of the Integer is less than, equal
to, or greater than the value of the specified object.
Compares the Integer to a specified object and returns an integer that indicates whether the value of the Integer is less than equal to or greater than the value of the specified object .
public int CompareTo(object obj)
        {
            if (obj == null)
                throw new ArgumentNullException(nameof(obj));
            if (obj is int)
                return CompareTo((int)obj);
            if (obj is Integer)
                return CompareTo((Integer)obj);
            throw new ArgumentOutOfRangeException(nameof(obj));
        }
public int CompareTo ( object obj ) { if ( obj == null ) throw new ArgumentNullException ( nameof ( obj ) ) ; if ( obj is int ) return CompareTo ( ( int ) obj ) ; if ( obj is Integer ) return CompareTo ( ( Integer ) obj ) ; throw new ArgumentOutOfRangeException ( nameof ( obj ) ) ; }
Compares the Integer to a specified object and returns an integer
that indicates whether the value of the Integer is less than, equal
to, or greater than the value of the specified object.
Compares the Integer to a specified object and returns an integer that indicates whether the value of the Integer is less than equal to or greater than the value of the specified object .
An integer that indicates the relationship of the Integer to the
obj parameter.
An integer that indicates the relationship of the Integer to the obj parameter .
obj
object
The object to compare.
The object to compare .