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

◆ this[int index]

object? System.Collections.Specialized.OrderedDictionary.this[int index]
getset

Implements System.Collections.Specialized.IOrderedDictionary.

Definition at line 137 of file OrderedDictionary.cs.

138 {
139 get
140 {
141 ArrayList arrayList = EnsureObjectsArray();
142 return ((DictionaryEntry)arrayList[index]).Value;
143 }
144 set
145 {
146 if (_readOnly)
147 {
148 throw new NotSupportedException(System.SR.OrderedDictionary_ReadOnly);
149 }
151 {
152 throw new ArgumentOutOfRangeException("index");
153 }
154 ArrayList arrayList = EnsureObjectsArray();
155 Hashtable hashtable = EnsureObjectsTable();
156 object key = ((DictionaryEntry)arrayList[index]).Key;
157 arrayList[index] = new DictionaryEntry(key, value);
158 hashtable[key] = value;
159 }
160 }
static string OrderedDictionary_ReadOnly
Definition SR.cs:32
Definition SR.cs:7