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

◆ CopyTo() [1/2]

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

Definition at line 962 of file StringBuilder.cs.

963 {
964 if (destination == null)
965 {
966 throw new ArgumentNullException("destination");
967 }
968 if (destinationIndex < 0)
969 {
970 throw new ArgumentOutOfRangeException("destinationIndex", SR.Format(SR.ArgumentOutOfRange_MustBeNonNegNum, "destinationIndex"));
971 }
972 if (destinationIndex > destination.Length - count)
973 {
974 throw new ArgumentException(SR.ArgumentOutOfRange_OffsetOut);
975 }
977 }
void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)

References System.SR.ArgumentOutOfRange_MustBeNonNegNum, System.SR.ArgumentOutOfRange_OffsetOut, System.Text.StringBuilder.CopyTo(), System.count, System.destination, System.destinationIndex, System.SR.Format(), and System.sourceIndex.

Referenced by System.Text.StringBuilder.CopyTo(), System.Text.StringBuilder.InternalCopy(), System.Net.IPAddressParser.IPv6AddressToString(), System.Text.StringBuilder.ToString(), and System.Globalization.TimeSpanFormat.TryFormat().