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

◆ ToKeyValuePairsArray()

virtual KeyValuePairs[] System.Collections.Hashtable.ToKeyValuePairsArray ( )
inlinepackagevirtualinherited

Reimplemented in System.Collections.Hashtable.SyncHashtable.

Definition at line 832 of file Hashtable.cs.

833 {
834 KeyValuePairs[] array = new KeyValuePairs[_count];
835 int num = 0;
836 bucket[] buckets = _buckets;
837 int num2 = buckets.Length;
838 while (--num2 >= 0)
839 {
840 object key = buckets[num2].key;
841 if (key != null && key != _buckets)
842 {
843 array[num++] = new KeyValuePairs(key, buckets[num2].val);
844 }
845 }
846 return array;
847 }

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

Referenced by System.Collections.Hashtable.SyncHashtable.ToKeyValuePairsArray().