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

◆ Add()

virtual XmlDictionaryString System.Xml.XmlDictionary.Add ( string value)
inlinevirtual

Definition at line 64 of file XmlDictionary.cs.

65 {
67 {
68 if (_strings == null)
69 {
70 _strings = new XmlDictionaryString[4];
71 }
72 else if (_nextId == _strings.Length)
73 {
74 int num = _nextId * 2;
75 if (num == 0)
76 {
77 num = 4;
78 }
79 Array.Resize(ref _strings, num);
80 }
81 value2 = new XmlDictionaryString(this, value, _nextId);
84 _nextId++;
85 }
86 return value2;
87 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
readonly Dictionary< string, XmlDictionaryString > _lookup
XmlDictionaryString[] _strings

References System.Xml.XmlDictionary._lookup, System.Xml.XmlDictionary._nextId, System.Xml.XmlDictionary._strings, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Dictionary, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Runtime.Serialization.Json.DataContractJsonSerializer.DataContractJsonSerializer(), and System.Runtime.Serialization.Json.DataContractJsonSerializer.ConvertXmlNameToJsonName().