コード例 #1
0
 public Container(SeparateChaining2ChoiceHashTable <TKey, TValue> chaining2ChoiceHashTable)
 {
     foreach (Collection <HashNode <TKey, TValue> > row in chaining2ChoiceHashTable.hashTable)
     {
         foreach (HashNode <TKey, TValue> element in row)
         {
             dictionary[element.Key] = element.Value;
         }
     }
 }
コード例 #2
0
 public Set(SeparateChaining2ChoiceHashTable <object, TValue> chaining2ChoiceHashTable)
 {
     foreach (Collection <HashNode <object, TValue> > row in chaining2ChoiceHashTable.hashTable)
     {
         foreach (HashNode <object, TValue> element in row)
         {
             set.Add(element.Value);
         }
     }
 }