Summary
Quotes the specified
string as a process argument literal.
Trailing backslashes and embedded quotes are escaped so a standard Windows
argv parser recovers the original value.
- Namespace
- Cake
.Core - Containing Type
- StringExtensions
Syntax
public static string Quote(this string value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | string | The literal string to quote. Already-quoted tokens are left unchanged. |
Return Value
| Type | Description |
|---|---|
| string | A quoted string. |
