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

◆ ArrayList() [2/3]

System.Collections.ArrayList.ArrayList ( int capacity)
inline

Definition at line 2261 of file ArrayList.cs.

2262 {
2263 if (capacity < 0)
2264 {
2265 throw new ArgumentOutOfRangeException("capacity", SR.Format(SR.ArgumentOutOfRange_MustBeNonNegNum, "capacity"));
2266 }
2267 if (capacity == 0)
2268 {
2269 _items = Array.Empty<object>();
2270 }
2271 else
2272 {
2273 _items = new object[capacity];
2274 }
2275 }

References System.Collections.ArrayList._items, System.SR.ArgumentOutOfRange_MustBeNonNegNum, System.capacity, and System.SR.Format().