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

◆ RequiresArrayRange< T >()

static void System.Dynamic.Utils.ContractUtils.RequiresArrayRange< T > ( IList< T > array,
int offset,
int count,
string offsetName,
string countName )
inlinestatic

Definition at line 67 of file ContractUtils.cs.

68 {
69 if (count < 0)
70 {
71 throw new ArgumentOutOfRangeException(countName);
72 }
73 if (offset < 0 || array.Count - offset < count)
74 {
75 throw new ArgumentOutOfRangeException(offsetName);
76 }
77 }

References System.array, System.count, and System.offset.