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

◆ ValidatePushPopRangeInput()

static void System.Collections.Concurrent.ConcurrentStack< T >.ValidatePushPopRangeInput ( T[] items,
int startIndex,
int count )
inlinestaticprivate

Definition at line 155 of file ConcurrentStack.cs.

156 {
157 if (items == null)
158 {
159 throw new ArgumentNullException("items");
160 }
161 if (count < 0)
162 {
163 throw new ArgumentOutOfRangeException("count", System.SR.ConcurrentStack_PushPopRange_CountOutOfRange);
164 }
165 int num = items.Length;
166 if (startIndex >= num || startIndex < 0)
167 {
168 throw new ArgumentOutOfRangeException("startIndex", System.SR.ConcurrentStack_PushPopRange_StartOutOfRange);
169 }
170 if (num - count < startIndex)
171 {
173 }
174 }
static string ConcurrentStack_PushPopRange_CountOutOfRange
Definition SR.cs:80
static string ConcurrentStack_PushPopRange_StartOutOfRange
Definition SR.cs:84
static string ConcurrentStack_PushPopRange_InvalidCount
Definition SR.cs:82
Definition SR.cs:7

References System.SR.ConcurrentStack_PushPopRange_CountOutOfRange, System.SR.ConcurrentStack_PushPopRange_InvalidCount, System.SR.ConcurrentStack_PushPopRange_StartOutOfRange, System.count, and System.startIndex.

Referenced by System.Collections.Concurrent.ConcurrentStack< T >.PushRange(), and System.Collections.Concurrent.ConcurrentStack< T >.TryPopRange().