Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ CreateArgumentValidationException()

static Exception System.ThrowHelper.CreateArgumentValidationException ( Array array,
int start )
inlinestaticprivate

Definition at line 126 of file ThrowHelper.cs.

127 {
128 if (array == null)
129 {
130 return CreateArgumentNullException(System.ExceptionArgument.array);
131 }
132 if ((uint)start > (uint)array.Length)
133 {
134 return CreateArgumentOutOfRangeException(System.ExceptionArgument.start);
135 }
136 return CreateArgumentOutOfRangeException(System.ExceptionArgument.length);
137 }
static Exception CreateArgumentNullException(System.ExceptionArgument argument)
static Exception CreateArgumentOutOfRangeException(System.ExceptionArgument argument)

References System.array, System.ThrowHelper.CreateArgumentNullException(), System.ThrowHelper.CreateArgumentOutOfRangeException(), and System.start.

Referenced by System.ThrowHelper.ThrowArgumentValidationException(), and System.ThrowHelper.ThrowArgumentValidationException< T >().