C# Class ToolBelt.CommandLineArgument

A valid command line argument
Afficher le fichier Open project: jlyonsmith/ToolBelt

Méthodes publiques

Méthode Description
IsValidForCommand ( string command ) : bool

Tests if the given command is valid. A null or empty command is always valid.

ParseAndSetTarget ( string argString ) : void

Parse string value and assign to the target object property

ToString ( ) : string

Returns the value of the argument as a string

Private Methods

Méthode Description
CommandLineArgument ( object argTarget, CommandLineArgumentAttribute argAttribute, PropertyInfo argPropertyInfo ) : System

Constructs a new command line argument.

MaybeQuoteString ( string value ) : string

Method Details

IsValidForCommand() public méthode

Tests if the given command is valid. A null or empty command is always valid.
public IsValidForCommand ( string command ) : bool
command string
Résultat bool

ParseAndSetTarget() public méthode

Parse string value and assign to the target object property
/// Duplicate argument OR invalid value. ///
public ParseAndSetTarget ( string argString ) : void
argString string
Résultat void

ToString() public méthode

Returns the value of the argument as a string
public ToString ( ) : string
Résultat string