示例#1
0
            public bool MoveNext()
            {
                CheckState();

                while (current < hashset.touched)
                {
                    if (hashset.GetLinkHashCode(++current) != 0)
                    {
                        return(true);
                    }
                }

                return(false);
            }
示例#2
0
 public bool MoveNext()
 {
     CheckState();
     if (next < 0)
     {
         return(false);
     }
     while (next < hashset.touched)
     {
         int num = next++;
         if (hashset.GetLinkHashCode(num) != 0)
         {
             current = hashset.slots[num];
             return(true);
         }
     }
     next = -1;
     return(false);
 }
示例#3
0
            public bool MoveNext()
            {
                CheckState();

                if (next < 0)
                {
                    return(false);
                }

                while (next < hashset.touched)
                {
                    int cur = next++;
                    if (hashset.GetLinkHashCode(cur) != 0)
                    {
                        current = hashset.slots[cur];
                        return(true);
                    }
                }

                next = NO_SLOT;
                return(false);
            }