UrlEncodingEncode(ReadOnlySpanChar) Method

Converts a read-only character span to its escaped representation.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.3+0b4e3cc14d7870504a77e224d298b921bfc6f2ee
C#
public static string Encode(
	ReadOnlySpan<char> charsToEscape
)

Parameters

charsToEscape  ReadOnlySpanChar
The span to escape.

Return Value

String
The escaped representation of charsToEscape.

Remarks

  Tip

Performance: Use the overload that takes a String as argument whenever you can.

See Also