C# Class RunEnv, 0install-win

Afficher le fichier Open project: 0install/0install-win Class Usage Examples

Méthodes publiques

Méthode Description
Main ( string args ) : int

Private Methods

Méthode 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 méthode

public static Main ( string args ) : int
args string
Résultat int