Example #1
0
        public bool Equals(ValuePair <T1, T2> that)
        {
            if (that == null)
            {
                return(false);
            }

            return(object.Equals(First, that.First) && object.Equals(Second, that.Second));
        }
Example #2
0
        public override bool Equals(Object obj)
        {
            ValuePair <T1, T2> that = obj as ValuePair <T1, T2>;

            if (that == null)
            {
                return(false);
            }

            return(Equals(that));
        }