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

◆ GetArraySegmentCtorValidationFailedException()

static Exception System.ThrowHelper.GetArraySegmentCtorValidationFailedException ( Array array,
int offset,
int count )
inlinestaticprivate

Definition at line 425 of file ThrowHelper.cs.

426 {
427 if (array == null)
428 {
429 return new ArgumentNullException("array");
430 }
431 if (offset < 0)
432 {
433 return new ArgumentOutOfRangeException("offset", SR.ArgumentOutOfRange_NeedNonNegNum);
434 }
435 if (count < 0)
436 {
437 return new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
438 }
439 return new ArgumentException(SR.Argument_InvalidOffLen);
440 }

References System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.array, System.count, and System.offset.

Referenced by System.ThrowHelper.ThrowArraySegmentCtorValidationFailedExceptions().