Пример #1
0
 // Implement the IIterator<ValueT> interface.
 public bool MoveNext()
 {
     lock (dict.SyncRoot)
     {
         return(iterator.MoveNext());
     }
 }
Пример #2
0
        // Implement the non-generic ICollection interface.
        public void CopyTo(Array array, int index)
        {
            IDictionaryIterator <KeyT, ValueT> iterator = dict.GetIterator();

            while (iterator.MoveNext())
            {
                array.SetValue(iterator.Current, index++);
            }
        }
Пример #3
0
 // Implement the IIterator<DictionaryEntry<KeyT, ValueT>> interface.
 public bool MoveNext()
 {
     return(iterator.MoveNext());
 }
Пример #4
0
 // Implement the non-generic IEnumerator interface.
 public bool MoveNext()
 {
     return(e.MoveNext());
 }