internal Enumerator(Dictionary <K, V> dictionary) { this.dictionary = dictionary; index = -1; if (dictionary.IsDirect()) { keys = new K[dictionary.Count]; dictionary.PrimCopyToKeysDirect(keys, 0); } else { keys = null; } }