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

◆ CopyKeys()

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

Definition at line 782 of file Hashtable.cs.

783 {
784 bucket[] buckets = _buckets;
785 int num = buckets.Length;
786 while (--num >= 0)
787 {
788 object key = buckets[num].key;
789 if (key != null && key != _buckets)
790 {
791 array.SetValue(key, arrayIndex++);
792 }
793 }
794 }

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

Referenced by System.Collections.Hashtable.KeyCollection.CopyTo(), and System.Collections.Hashtable.GetObjectData().