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

◆ CopyValues()

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

Definition at line 849 of file Hashtable.cs.

850 {
851 bucket[] buckets = _buckets;
852 int num = buckets.Length;
853 while (--num >= 0)
854 {
855 object key = buckets[num].key;
856 if (key != null && key != _buckets)
857 {
858 array.SetValue(buckets[num].val, arrayIndex++);
859 }
860 }
861 }

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

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