Method TryCopyTo
TryCopyTo(string, ExSpan<char>)
Copies the contents of this string into the destination span.
public static bool TryCopyTo(this string source, ExSpan<char> destination)
Parameters
source
stringThe source string.
destination
ExSpan<char>The span into which to copy this string's contents.
Returns
- bool
true if the data was copied; false if the destination was too short to fit the contents of the string.