Table of Contents

Method TryCopyTo

Namespace
Zyl.ExSpans
Assembly
ExSpans.dll

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 string

The 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.