public override bool Equals(object obj) { try { DoubleKey <TKey1, TKey2> other = (DoubleKey <TKey1, TKey2>)obj; return(this.Equals(other)); } catch { return(false); } }
public bool Equals(DoubleKey <TKey1, TKey2> other) { return(object.Equals(Key1, other.Key1) && object.Equals(Key2, other.Key2)); }