C# Class DroidExplorer.Bootstrapper.Arguments

An command line argument parser
Show file Open project: camalot/droidexplorer

Private Properties

Property Type Description
GetFirstParamValue string
InternalContains bool
InternalContainsAny bool

Public Methods

Method Description
Arguments ( ) : System

Initializes a new instance of the Arguments class.

Arguments ( string args ) : System

Initializes a new instance of the Arguments class.

Clear ( ) : void

Removes all parameters from this collection

Contains ( ) : bool

Determines whether contains any param in the specified param list.

Contains ( string param ) : bool

Determines whether the specified param contains param.

ContainsValue ( string value ) : bool

Determines whether the specified value contains value.

Get ( ) : string

Gets the specified param value.

Get ( string param ) : string

Gets the specified param value.

Parse ( string args ) : void

Parse the specified arguments.

Valid parameters forms: {-,/,--}param{ ,=,:}((",')value(",')) Examples: -param1 value1 --param2 /param3:"Test-:-work" /param4=happy -param5 '--=nice=--'

ToString ( ) : string

Returns a that represents the current .

this ( ) : string

Gets the param or the second param, if the first doesn't exist.

this ( string param ) : string

Gets the System.String with the specified param.

Private Methods

Method Description
GetFirstParamValue ( ) : string

Gets the first param value.

InternalContains ( string param ) : bool

Determines whether contains the specified param.

InternalContainsAny ( ) : bool

Determines whether contains any param in the specified param list.

Method Details

Arguments() public method

Initializes a new instance of the Arguments class.
public Arguments ( ) : System
return System

Arguments() public method

Initializes a new instance of the Arguments class.
public Arguments ( string args ) : System
args string The args.
return System

Clear() public method

Removes all parameters from this collection
public Clear ( ) : void
return void

Contains() public method

Determines whether contains any param in the specified param list.
public Contains ( ) : bool
return bool

Contains() public method

Determines whether the specified param contains param.
public Contains ( string param ) : bool
param string The param.
return bool

ContainsValue() public method

Determines whether the specified value contains value.
public ContainsValue ( string value ) : bool
value string The value.
return bool

Get() public method

Gets the specified param value.
public Get ( ) : string
return string

Get() public method

Gets the specified param value.
public Get ( string param ) : string
param string The param.
return string

Parse() public method

Parse the specified arguments.
Valid parameters forms: {-,/,--}param{ ,=,:}((",')value(",')) Examples: -param1 value1 --param2 /param3:"Test-:-work" /param4=happy -param5 '--=nice=--'
public Parse ( string args ) : void
args string The args.
return void

ToString() public method

Returns a that represents the current .
public ToString ( ) : string
return string

this() public method

Gets the param or the second param, if the first doesn't exist.
public this ( ) : string
return string

this() public method

Gets the System.String with the specified param.
public this ( string param ) : string
param string
return string