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

◆ Clone()

virtual object System.Collections.Hashtable.Clone ( )
inlinevirtualinherited

Implements System.ICloneable.

Reimplemented in System.Data.PropertyCollection, and System.Collections.Hashtable.SyncHashtable.

Definition at line 699 of file Hashtable.cs.

700 {
701 bucket[] buckets = _buckets;
702 Hashtable hashtable = new Hashtable(_count, _keycomparer);
706 int num = buckets.Length;
707 while (num > 0)
708 {
709 num--;
710 object key = buckets[num].key;
711 if (key != null && key != buckets)
712 {
713 hashtable[key] = buckets[num].val;
714 }
715 }
716 return hashtable;
717 }
IEqualityComparer _keycomparer
Definition Hashtable.cs:413

References System.Collections.Hashtable.Hashtable(), System.Collections.Hashtable._buckets, System.Collections.Hashtable._count, System.Collections.Hashtable._keycomparer, System.Collections.Hashtable._loadFactor, System.Collections.Hashtable._version, System.Runtime.Serialization.Dictionary, System.Collections.Hashtable.bucket.key, System.key, and System.Collections.Hashtable.bucket.val.

Referenced by System.Collections.Hashtable.SyncHashtable.Clone(), System.Xml.Schema.NamespaceList.Clone(), and System.Xml.Serialization.CodeIdentifiers.Clone().