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

◆ CopyTo() [1/2]

void System.String.CopyTo ( int sourceIndex,
char[] destination,
int destinationIndex,
int count )
inline

Definition at line 1238 of file String.cs.

1239 {
1240 if (destination == null)
1241 {
1242 throw new ArgumentNullException("destination");
1243 }
1244 if (count < 0)
1245 {
1246 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NegativeCount);
1247 }
1248 if (sourceIndex < 0)
1249 {
1250 throw new ArgumentOutOfRangeException("sourceIndex", SR.ArgumentOutOfRange_Index);
1251 }
1252 if (count > Length - sourceIndex)
1253 {
1254 throw new ArgumentOutOfRangeException("sourceIndex", SR.ArgumentOutOfRange_IndexCount);
1255 }
1256 if (destinationIndex > destination.Length - count || destinationIndex < 0)
1257 {
1258 throw new ArgumentOutOfRangeException("destinationIndex", SR.ArgumentOutOfRange_IndexCount);
1259 }
1261 }
static unsafe ref byte GetArrayDataReference(Array array)
char _firstChar
Definition String.cs:35

References System.String._firstChar, System.SR.ArgumentOutOfRange_Index, System.SR.ArgumentOutOfRange_IndexCount, System.SR.ArgumentOutOfRange_NegativeCount, System.count, System.destination, System.destinationIndex, System.Runtime.InteropServices.MemoryMarshal.GetArrayDataReference(), System.String.Length, System.Buffer.Memmove(), and System.sourceIndex.