Exemplo n.º 1
0
 // Constructor.
 public SynchronizedDictIterator
     (IDictionary <KeyT, ValueT> dict,
     IDictionaryIterator <KeyT, ValueT> iterator)
 {
     this.dict     = dict;
     this.iterator = iterator;
 }
Exemplo n.º 2
0
 // Constructor.
 public DictionaryEnumeratorAdapter(IDictionaryIterator <KeyT, ValueT> e)
 {
     if (e == null)
     {
         throw new ArgumentNullException("e");
     }
     this.e = e;
 }
Exemplo n.º 3
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++);
            }
        }
Exemplo n.º 4
0
    public void GetMethod(Library library)
    {
        IDictionaryIterator iterator = library.CreateNumerator();

        while (iterator.Terminate())
        {
            Method algorithm = iterator.Next();
            Console.WriteLine(algorithm.Name);
        }
    }
Exemplo n.º 5
0
 // Constructor.
 public FixedSizeDictIterator(IDictionaryIterator <KeyT, ValueT> iterator)
 {
     this.iterator = iterator;
 }
 public WordsInDictAggregate(IDictionaryIterator <T, U> iterator)
 {
     _iterator = iterator;
 }
Exemplo n.º 7
0
 // Constructor.
 public ReadOnlyDictIterator(IDictionaryIterator <KeyT, ValueT> iterator)
 {
     this.iterator = iterator;
 }