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

◆ this[object key]

object? System.Collections.Specialized.OrderedDictionary.this[object key]
getset

Implements System.Collections.IDictionary.

Definition at line 162 of file OrderedDictionary.cs.

163 {
164 get
165 {
166 if (_objectsTable == null)
167 {
168 return null;
169 }
170 return _objectsTable[key];
171 }
172 set
173 {
174 if (_readOnly)
175 {
176 throw new NotSupportedException(System.SR.OrderedDictionary_ReadOnly);
177 }
178 Hashtable hashtable = EnsureObjectsTable();
179 if (hashtable.Contains(key))
180 {
181 hashtable[key] = value;
182 ArrayList arrayList = EnsureObjectsArray();
183 arrayList[IndexOfKey(key)] = new DictionaryEntry(key, value);
184 }
185 else
186 {
187 Add(key, value);
188 }
189 }
190 }
static string OrderedDictionary_ReadOnly
Definition SR.cs:32
Definition SR.cs:7