MimeUtilsQuote(ReadOnlySpanChar) Method

Quote the specified text.

Definition

Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static string Quote(
	ReadOnlySpan<char> text
)

Parameters

text  ReadOnlySpanChar
The text to quote.

Return Value

String
The quoted text.

Remarks

Quotes the specified text, enclosing it in double-quotes and escaping any backslashes and double-quotes within.

Exceptions

See Also