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

◆ Add()

void System.Collections.Specialized.HybridDictionary.Add ( object key,
object? value )
inline

Implements System.Collections.IDictionary.

Definition at line 159 of file HybridDictionary.cs.

160 {
161 if (hashtable != null)
162 {
164 }
165 else if (list == null)
166 {
167 list = new ListDictionary(caseInsensitive ? StringComparer.OrdinalIgnoreCase : null);
168 list.Add(key, value);
169 }
170 else if (list.Count + 1 >= 9)
171 {
172 ChangeOver();
174 }
175 else
176 {
177 list.Add(key, value);
178 }
179 }
virtual void Add(object key, object? value)
Definition Hashtable.cs:676

References System.Collections.Specialized.ListDictionary.Add(), System.Collections.Hashtable.Add(), System.Collections.Specialized.HybridDictionary.caseInsensitive, System.Collections.Specialized.HybridDictionary.ChangeOver(), System.Collections.Specialized.ListDictionary.Count, System.Collections.Specialized.HybridDictionary.hashtable, System.key, System.Collections.Specialized.HybridDictionary.list, System.StringComparer.OrdinalIgnoreCase, and System.value.

Referenced by System.Xml.Xsl.XsltOld.Compiler.AddDocumentURI(), System.Xml.Xsl.Xslt.QilGenerator.CompileLiteralElement(), and System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet().