Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ this[int index]

int System.Xml.XmlBinaryWriterSession.IntArray.this[int index]
getset

Definition at line 135 of file XmlBinaryWriterSession.cs.

136 {
137 get
138 {
139 if (index >= _array.Length)
140 {
141 return 0;
142 }
143 return _array[index];
144 }
145 set
146 {
147 if (index >= _array.Length)
148 {
149 int[] array = new int[Math.Max(index + 1, _array.Length * 2)];
150 Array.Copy(_array, array, _array.Length);
151 _array = array;
152 }
153 _array[index] = value;
154 }
155 }