Table of Contents

Method CopyToSpan

Namespace
Alternet.UI.Extensions
Assembly
Alternet.UI.Common.dll

CopyToSpan(string, Span<char>)

Copies the contents of this string into the destination span.

public static void CopyToSpan(this string s, Span<char> destination)

Parameters

s string

String to copy.

destination Span<char>

The span into which to copy string's contents.

Exceptions

ArgumentException

The destination span is shorter than the source string.