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

◆ this[int index] [1/2]

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

Definition at line 113 of file ReadOnlyCollectionBuilder.cs.

114 {
115 get
116 {
117 if (index >= _size)
118 {
119 throw new ArgumentOutOfRangeException("index");
120 }
121 return _items[index];
122 }
123 set
124 {
125 if (index >= _size)
126 {
127 throw new ArgumentOutOfRangeException("index");
128 }
129 _items[index] = value;
130 _version++;
131 }
132 }