コード例 #1
0
        public int CompareTo(CompletionTime <T> other)
        {
            // No end means indefinite so they come last.

            if (End == null)
            {
                return(other.End == null ? 0 : 1);
            }
            return(other.End == null
                ? -1
                : End.Value.CompareTo(other.End.Value));
        }
コード例 #2
0
 public bool Equals(CompletionTime <T> other)
 {
     return(other.End.Equals(End));
 }