public int CompareTo(object value) { if (value == null) { return(1); } if (!(value is Ulid)) { throw new ArgumentException("Arugment must be Ulid"); } Ulid other = (Ulid)value; if (this._timeHigh != other._timeHigh) { return(Compare(this._timeHigh, other._timeHigh)); } if (this._timeLow != other._timeLow) { return(Compare(this._timeLow, other._timeLow)); } if (this._randomA != other._randomA) { return(Compare(this._randomA, other._randomA)); } if (this._randomB != other._randomB) { return(Compare(this._randomB, other._randomB)); } if (this._randomC != other._randomC) { return(Compare(this._randomC, other._randomC)); } return(0); }
public static bool TryParse(string input, out Ulid result) { throw new NotImplementedException(); }