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; } } }
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); } } }