UrlEncodingEncode(ReadOnlySpan`1Char) 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.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
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