String.Implicit(String to ReadOnlySpan<Char>) Operator

Definition

Defines an implicit conversion of a given string to a read-only span of characters.

public static implicit operator ReadOnlySpan<char> (string? value);
public static implicit operator ReadOnlySpan<char> (string value);

Parameters

value
String

A string to implicitly convert.

Returns

A new read-only span of characters representing the string.

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1