public bool MoveNext() { HashKeyBag <T> inst = this.inst; if (version != inst.m_version) { throw new InvalidOperationException(); } int[] b = inst.m_buckets; int len = b.Length; while (++index < len) { if (b[index] != 0) { return(true); } } return(false); }
public Enumerator(HashKeyBag <T> inst) { this.inst = inst; version = inst.m_version; index = -1; }
public void Dispose() => inst = null;