CliStringUtil.ToLiteral Method
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
Gets an escaped string literal. Value is enclosed with double quotes and Unicode and ASCII non-printable characters are escaped.
public static string ToLiteral(this string value, char quoteChar = '"')
Parameters
valuestringA string instance.
quoteCharcharThe enclosing quote char, by default it's double quotes.