Ejemplo n.º 1
0
 public bool MoveNext()
 {
     if (linkedDictionary.next == null)
     {
         return(false);
     }
     linkedDictionary = linkedDictionary.next;
     return(true);
 }
Ejemplo n.º 2
0
        private static LinkedDictionary <TKey, TValue>[] CreateLinkedDictionaryArray(long size)
        {
            var result = new LinkedDictionary <TKey, TValue> [size];

            for (long i = 0; i < size; i++)
            {
                result[i] = new LinkedDictionary <TKey, TValue>();
            }
            return(result);
        }
Ejemplo n.º 3
0
 public void Add(TKey key, TValue value)
 {
     if (key.Equals(this.key))
     {
         return;
     }
     if (next == null)
     {
         next = new LinkedDictionary <TKey, TValue>(key, value);
         return;
     }
     next.Add(key, value);
 }
Ejemplo n.º 4
0
 public LinkedDictionary(TKey key, TValue value)
 {
     this.key   = key;
     this.value = value;
     next       = null;
 }
Ejemplo n.º 5
0
 public LinkedDictionary()
 {
     next = null;
 }
Ejemplo n.º 6
0
 public void Dispose()
 {
     linkedDictionary = null;
 }
Ejemplo n.º 7
0
 internal LinkedDictionaryEnumerator(LinkedDictionary <TKey, TValue> linkedDictionary)
 {
     this.linkedDictionary      = new LinkedDictionary <TKey, TValue>();
     this.linkedDictionary.next = linkedDictionary;
 }