Example #1
0
        public override bool Equals(object obj)
        {
            LazinatorTuple <T, U> other = obj as LazinatorTuple <T, U>;

            if (other == null)
            {
                return(false);
            }
            return(EqualityComparer <T> .Default.Equals(Item1, other.Item1) && EqualityComparer <U> .Default.Equals(Item2, other.Item2));
        }
Example #2
0
 public int CompareTo(LazinatorTuple <T, U> other)
 {
     return(((Item1, Item2)).CompareTo((other.Item1, other.Item2)));
 }