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

◆ ChangeOver()

void System.Collections.Specialized.HybridDictionary.ChangeOver ( )
inlineprivate

Definition at line 147 of file HybridDictionary.cs.

148 {
149 IDictionaryEnumerator enumerator = list.GetEnumerator();
150 Hashtable hashtable = ((!caseInsensitive) ? new Hashtable(13) : new Hashtable(13, StringComparer.OrdinalIgnoreCase));
151 while (enumerator.MoveNext())
152 {
153 hashtable.Add(enumerator.Key, enumerator.Value);
154 }
155 this.hashtable = hashtable;
156 list = null;
157 }
virtual void Add(object key, object? value)
Definition Hashtable.cs:676

References System.Collections.Hashtable.Add(), System.Collections.Specialized.HybridDictionary.caseInsensitive, System.Collections.Specialized.ListDictionary.GetEnumerator(), System.Collections.Specialized.HybridDictionary.hashtable, System.Collections.IDictionaryEnumerator.Key, System.Collections.Specialized.HybridDictionary.list, System.Collections.IEnumerator.MoveNext(), System.StringComparer.OrdinalIgnoreCase, and System.Collections.IDictionaryEnumerator.Value.

Referenced by System.Collections.Specialized.HybridDictionary.Add().