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

◆ ToCharArray() [2/2]

char[] System.String.ToCharArray ( int startIndex,
int length )
inline

Definition at line 1299 of file String.cs.

1300 {
1302 {
1303 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_Index);
1304 }
1305 if (length <= 0)
1306 {
1307 if (length == 0)
1308 {
1309 return Array.Empty<char>();
1310 }
1311 throw new ArgumentOutOfRangeException("length", SR.ArgumentOutOfRange_Index);
1312 }
1313 char[] array = new char[length];
1315 return array;
1316 }
static unsafe ref byte GetArrayDataReference(Array array)
char _firstChar
Definition String.cs:35

References System.String._firstChar, System.SR.ArgumentOutOfRange_Index, System.array, System.Runtime.InteropServices.MemoryMarshal.GetArrayDataReference(), System.length, System.String.Length, System.Buffer.Memmove(), and System.startIndex.