Läs på engelska Redigera

Dela via


MemoryExtensions.EnumerateRunes Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

EnumerateRunes(Span<Char>)

Returns an enumeration of Rune from the provided span.

EnumerateRunes(ReadOnlySpan<Char>)

Returns an enumeration of Rune from the provided read-only span.

EnumerateRunes(Span<Char>)

Source:
MemoryExtensions.Globalization.cs
Source:
MemoryExtensions.Globalization.cs
Source:
MemoryExtensions.Globalization.cs

Returns an enumeration of Rune from the provided span.

C#
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static System.Text.SpanRuneEnumerator EnumerateRunes(this Span<char> span);
C#
public static System.Text.SpanRuneEnumerator EnumerateRunes(this Span<char> span);

Parameters

span
Span<Char>

The source span.

Returns

A rune enumerator.

Attributes

Remarks

Invalid sequences will be represented in the enumeration by ReplacementChar.

Applies to

.NET 10 och andra versioner
Produkt Versioner
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

EnumerateRunes(ReadOnlySpan<Char>)

Source:
MemoryExtensions.Globalization.cs
Source:
MemoryExtensions.Globalization.cs
Source:
MemoryExtensions.Globalization.cs

Returns an enumeration of Rune from the provided read-only span.

C#
public static System.Text.SpanRuneEnumerator EnumerateRunes(this ReadOnlySpan<char> span);

Parameters

span
ReadOnlySpan<Char>

The source span.

Returns

A rune enumerator.

Remarks

Invalid sequences will be represented in the enumeration by Rune.ReplacementChar.

Applies to

.NET 10 och andra versioner
Produkt Versioner
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10