Пример #1
0
            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);
            }
Пример #2
0
 public Enumerator(HashKeyBag <T> inst)
 {
     this.inst = inst;
     version   = inst.m_version;
     index     = -1;
 }
Пример #3
0
 public void Dispose() => inst = null;