Class ProcessArgumentEscaper
Provides argument escaping compatible with Window's GetCommandLineArgsW() function.
Inheritance
System.Object
ProcessArgumentEscaper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Fs.Processes
Assembly: Fs.Processes.dll
Syntax
public static class ProcessArgumentEscaper
Methods
| Improve this Doc View SourceEscape(String)
Escapes the specified argument.
Declaration
public static string Escape(string argument)
Parameters
Type | Name | Description |
---|---|---|
System.String | argument | The argument. |
Returns
Type | Description |
---|---|
System.String | The escaped argument. |
Escape(String, Boolean)
Escapes the specified argument.
Declaration
public static string Escape(string argument, bool forceQuotes)
Parameters
Type | Name | Description |
---|---|---|
System.String | argument | The argument. |
System.Boolean | forceQuotes |
|
Returns
Type | Description |
---|---|
System.String | The escaped argument. |
Escape(StringBuilder, String)
Escapes the argument, sending the output to the specified System.Text.StringBuilder.
Declaration
public static StringBuilder Escape(StringBuilder argumentBuilder, string argument)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | argumentBuilder | The System.Text.StringBuilder to write to. |
System.String | argument | The argument. |
Returns
Type | Description |
---|---|
System.Text.StringBuilder | The value of |
Escape(StringBuilder, String, Boolean)
Escapes the argument, sending the output to the specified System.Text.StringBuilder.
Declaration
public static StringBuilder Escape(StringBuilder argumentBuilder, string argument, bool forceQuotes)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | argumentBuilder | The System.Text.StringBuilder to write to. |
System.String | argument | The argument. |
System.Boolean | forceQuotes |
|
Returns
Type | Description |
---|---|
System.Text.StringBuilder | The value of |