public int CompareTo(TaskBeganEventArgs other) { if (other == null) { return(-1); } int tsCompare = Timestamp.CompareTo(other.Timestamp); return(tsCompare == 0 ? TaskId.CompareTo(other.TaskId) : tsCompare); }