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

◆ this[int index] [2/2]

Implements System.Collections.Generic.IList< T >.

Definition at line 140 of file ReadOnlyCollectionBuilder.cs.

141 {
142 get
143 {
144 return this[index];
145 }
146 set
147 {
148 ValidateNullValue(value, "value");
149 try
150 {
151 this[index] = (T)value;
152 }
153 catch (InvalidCastException)
154 {
155 throw Error.InvalidTypeException(value, typeof(T), "value");
156 }
157 }
158 }
static Exception InvalidTypeException(object value, Type type, string paramName)
Definition Error.cs:938