src/Inflatable/BaseClasses/ObjectBaseClass.cs
/// <summary>
/// Compares the object to another object
/// </summary>
/// <param name="other">Object to compare to</param>
/// <returns>0 if they are equal, -1 if this is smaller, 1 if it is larger</returns>
Compares the object to another object
Compares the object to another object
public virtual int CompareTo(TObjectType? other)
        {
            if (other is null)
                return -1;
            if (other.ID.CompareTo(default(TIDType)!) == 0 && ID.CompareTo(default(TIDType)!) == 0)
                return 0;
            return other.ID.CompareTo(ID);
        }
public virtual int CompareTo ( TObjectType ? other ) { if ( other is null ) return - 1 ; if ( other . ID . CompareTo ( default ( TIDType ) ! ) == 0 && ID . CompareTo ( default ( TIDType ) ! ) == 0 ) return 0 ; return other . ID . CompareTo ( ID ) ; }
Compares the object to another object
Compares the object to another object
0 if they are equal, -1 if this is smaller, 1 if it is larger
0 if they are equal - 1 if this is smaller 1 if it is larger
other
TObjectType?
Object to compare to
Object to compare to