Show / Hide Table of Contents

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 Source

Escape(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.

| Improve this Doc View Source

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

true to always escape the argument

Returns
Type Description
System.String

The escaped argument.

| Improve this Doc View Source

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 argumentBuilder.

| Improve this Doc View Source

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

true to always escape the argument

Returns
Type Description
System.Text.StringBuilder

The value of argumentBuilder.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX