public override bool Equals(object obj) { BinarySearchTree <T> other = (BinarySearchTree <T>)obj; for (int i = 0; i < this.Count(); i++) { if (!this.ElementAt(i).Equals(other.ElementAt(i))) { return(false); } } return(true); }
public override bool Equals(object obj) { BinarySearchTree <T> other = (BinarySearchTree <T>)obj; for (int i = 0; i < this.Count(); i++) { if (!this.ElementAt(i).Equals(other.ElementAt(i))) { return(false); } } return(true); }