C# Class RJH.CommandLineHelper.Parser

Implementation of a command-line parsing class. Is capable of having switches registered with it directly or can examine a registered class for any properties with the appropriate attributes appended to them.
Afficher le fichier Open project: suntong/lang Class Usage Examples

Méthodes publiques

Méthode Description
AddSwitch ( string name, string description ) : void
InternalValue ( string name ) : object
Parse ( ) : bool
Parser ( string commandLine ) : System
Parser ( string commandLine, object classForAutoAttributes ) : System
this ( string name ) : object

Private Methods

Méthode Description
ExtractApplicationName ( ) : void
HandleSwitches ( ) : void
SplitParameters ( ) : void

Method Details

AddSwitch() public méthode

public AddSwitch ( string name, string description ) : void
name string
description string
Résultat void

InternalValue() public méthode

public InternalValue ( string name ) : object
name string
Résultat object

Parse() public méthode

public Parse ( ) : bool
Résultat bool

Parser() public méthode

public Parser ( string commandLine ) : System
commandLine string
Résultat System

Parser() public méthode

public Parser ( string commandLine, object classForAutoAttributes ) : System
commandLine string
classForAutoAttributes object
Résultat System

this() public méthode

public this ( string name ) : object
name string
Résultat object