Прочетете на английски Редактиране

Споделяне чрез


Uri.TryUnescapeDataString Method

Definition

Attempts to convert a span to its unescaped representation.

C#
public static bool TryUnescapeDataString(ReadOnlySpan<char> charsToUnescape, Span<char> destination, out int charsWritten);

Parameters

charsToUnescape
ReadOnlySpan<Char>

The span to unescape.

destination
Span<Char>

The output span that contains the unescaped result of the operation.

charsWritten
Int32

When this method returns, contains the number of chars that were written into destination.

Returns

true if the destination was large enough to hold the entire result; otherwise, false.

Applies to

Продукт Версии
.NET 9, 10