C# Class RunEnv, 0install-win

Datei anzeigen Open project: 0install/0install-win Class Usage Examples

Public Methods

Method Description
Main ( string args ) : int

Private Methods

Method Description
ConcatenateEscapeArgument ( IEnumerable parts ) : string

Combines multiple strings into one for use as a Windows command-line argument using EscapeArgument.

This coressponds to Windows' handling of command-line arguments as specified in: http://msdn.microsoft.com/library/17w5ykft

ContainsWhitespace ( string text ) : bool

Checks whether a string contains any whitespace characters

EscapeArgument ( string value ) : string

Escapes a string for use as a Windows command-line argument, making sure it is encapsulated within " if it contains whitespace characters.

This corresponds to Windows' handling of command-line arguments as specified in: http://msdn.microsoft.com/library/17w5ykft

Method Details

Main() public static method

public static Main ( string args ) : int
args string
return int