public override bool Equals(object o) { if (o == this) { return(true); } if (!(o is Antlr4.Runtime.Misc.Array2DHashSet)) { return(false); } Antlr4.Runtime.Misc.Array2DHashSet <object> other = (Antlr4.Runtime.Misc.Array2DHashSet <object>)o; if (other.Count != Count) { return(false); } bool same = this.ContainsAll(other); return(same); }
public virtual bool ContainsAll <_T0>(ICollection <_T0> collection) { if (collection is Antlr4.Runtime.Misc.Array2DHashSet) { Antlr4.Runtime.Misc.Array2DHashSet <object> s = (Antlr4.Runtime.Misc.Array2DHashSet <object>)collection; foreach (object[] bucket in s.buckets) { if (bucket == null) { continue; } foreach (object o in bucket) { if (o == null) { break; } if (!this.ContainsFast(AsElementType(o))) { return(false); } } } } else { foreach (object o in collection) { if (!this.ContainsFast(AsElementType(o))) { return(false); } } } return(true); }