private void CopyEntries(Array array, int arrayIndex)
{
Debug.Assert(array != null);
Debug.Assert(array.Rank == 1);
bucket[] lbuckets = _buckets;
for (int i = lbuckets.Length; --i >= 0;)
{
Object keyv = lbuckets[i].key;
if ((keyv != null) && (keyv != _buckets))
{
DictionaryEntry entry = new DictionaryEntry(keyv, lbuckets[i].val);
array.SetValue(entry, arrayIndex++);
}
}
}