/// <summary> /// Equals the. /// </summary> /// <param name="obj">The obj.</param> /// <returns>A bool.</returns> public override bool Equals(object obj) { try { DualKey <T, U> t = (DualKey <T, U>)obj; return(element1.Equals(t.element1) && element2.Equals(t.element2)); } catch { return(false); } }
public bool Equals(DualKey <T> obj) { return((this.Key0.Equals(obj.Key0) && this.Key1.Equals(obj.Key1)) || (this.Key0.Equals(obj.Key1) && this.Key0.Equals(obj.Key0))); }
public bool Equals(DualKey <TKey> other) { return(A.Equals(other.A) && B.Equals(other.B)); }