C# Класс DroidExplorer.Core.Arguments

An command line argument parser
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GetFirstParamValue string
InternalContains bool
InternalContainsAny bool

Открытые методы

Метод Описание
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(",'))

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.

Приватные методы

Метод Описание
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.

Описание методов

Arguments() публичный Метод

Initializes a new instance of the Arguments class.
public Arguments ( ) : System
Результат System

Arguments() публичный Метод

Initializes a new instance of the Arguments class.
public Arguments ( string args ) : System
args string The args.
Результат System

Clear() публичный Метод

Removes all parameters from this collection
public Clear ( ) : void
Результат void

Contains() публичный Метод

Determines whether contains any param in the specified param list.
public Contains ( ) : bool
Результат bool

Contains() публичный Метод

Determines whether the specified param contains param.
public Contains ( string param ) : bool
param string The param.
Результат bool

ContainsValue() публичный Метод

Determines whether the specified value contains value.
public ContainsValue ( string value ) : bool
value string The value.
Результат bool

Get() публичный Метод

Gets the specified param value.
public Get ( ) : string
Результат string

Get() публичный Метод

Gets the specified param value.
public Get ( string param ) : string
param string The param.
Результат string

Parse() публичный Метод

Parse the specified arguments.
Valid parameters forms: {-,/,--}param{ ,=,:}((",')value(",'))
public Parse ( string args ) : void
args string The args.
Результат void

ToString() публичный Метод

Returns a that represents the current .
public ToString ( ) : string
Результат string

this() публичный Метод

Gets the param or the second param, if the first doesn't exist.
public this ( ) : string
Результат string

this() публичный Метод

Gets the System.String with the specified param.
public this ( string param ) : string
param string
Результат string