Search Results for

    Show / Hide Table of Contents

    Class ArgumentEscaper

    A utility for escaping arguments for new processes.

    Inheritance
    System.Object
    ArgumentEscaper
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: McMaster.Extensions.CommandLineUtils
    Assembly: McMaster.Extensions.CommandLineUtils.dll
    Syntax
    public static class ArgumentEscaper

    Methods

    | Improve this Doc View Source

    EscapeAndConcatenate(IEnumerable<String>)

    Undo the processing which took place to create string[] args in Main, so that the next process will receive the same string[] args.

    Declaration
    public static string EscapeAndConcatenate(IEnumerable<string> args)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> args

    The arguments

    Returns
    Type Description
    System.String

    A single string of escaped arguments

    Remarks

    See https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/everyone-quotes-command-line-arguments-the-wrong-way/

    • Improve this Doc
    • View Source
    In This Article
    Back to top