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

◆ Queue() [2/3]

System.Collections.Generic.Queue< T >.Queue ( int capacity)
inline

Definition at line 116 of file Queue.cs.

117 {
118 if (capacity < 0)
119 {
120 throw new ArgumentOutOfRangeException("capacity", capacity, SR.ArgumentOutOfRange_NeedNonNegNum);
121 }
122 _array = new T[capacity];
123 }

References System.Collections.Generic.Queue< T >._array, System.SR.ArgumentOutOfRange_NeedNonNegNum, and System.capacity.