StringSegment.AsMemory Method

Definition

Gets a ReadOnlyMemory<T> from the current StringSegment.

C#
public ReadOnlyMemory<char> AsMemory();

Returns

The ReadOnlyMemory<T> from this StringSegment.

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)