public bool Equals(ValuePair <T1, T2> that) { if (that == null) { return(false); } return(object.Equals(First, that.First) && object.Equals(Second, that.Second)); }
public override bool Equals(Object obj) { ValuePair <T1, T2> that = obj as ValuePair <T1, T2>; if (that == null) { return(false); } return(Equals(that)); }