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

◆ Capacity

int System.Collections.Immutable.ImmutableArray< T >.Builder.Capacity
getset

Definition at line 232 of file ImmutableArray.cs.

233 {
234 get
235 {
236 return _elements.Length;
237 }
238 set
239 {
240 if (value < _count)
241 {
243 }
244 if (value == _elements.Length)
245 {
246 return;
247 }
248 if (value > 0)
249 {
250 T[] array = new T[value];
251 if (_count > 0)
252 {
254 }
256 }
257 else
258 {
259 _elements = ImmutableArray<T>.Empty.array;
260 }
261 }
262 }
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
Definition Array.cs:624
static string CapacityMustBeGreaterThanOrEqualToCount
Definition SR.cs:22
Definition SR.cs:7

Referenced by System.Collections.Immutable.ImmutableArray< T >.Builder.MoveToImmutable().