예제 #1
0
        public bool Equals(TesseractCell <T> c)
        {
            if (Object.ReferenceEquals(c, null))
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, c))
            {
                return(true);
            }
            if (this.GetType() != c.GetType())
            {
                return(false);
            }

            return(c.Value.Equals(Value));
        }
예제 #2
0
 public int CompareTo(TesseractCell <T> other) => Value.CompareTo(other.Value);