Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CopyEntries()

void System.Collections.Hashtable.CopyEntries ( Array array,
int arrayIndex )
inlineprivateinherited

Definition at line 796 of file Hashtable.cs.

797 {
798 bucket[] buckets = _buckets;
799 int num = buckets.Length;
800 while (--num >= 0)
801 {
802 object key = buckets[num].key;
803 if (key != null && key != _buckets)
804 {
805 DictionaryEntry dictionaryEntry = new DictionaryEntry(key, buckets[num].val);
806 array.SetValue(dictionaryEntry, arrayIndex++);
807 }
808 }
809 }

References System.Collections.Hashtable._buckets, System.array, System.arrayIndex, System.Runtime.Serialization.Dictionary, System.Collections.Hashtable.bucket.key, and System.key.

Referenced by System.Collections.Hashtable.CopyTo().