Ejemplo n.º 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);
            }
Ejemplo n.º 2
0
 public Enumerator(HashKeyBag <T> inst)
 {
     this.inst = inst;
     version   = inst.m_version;
     index     = -1;
 }
Ejemplo n.º 3
0
 public void Dispose() => inst = null;