C# Класс 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.
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
ExtractApplicationName ( ) : void
HandleSwitches ( ) : void
SplitParameters ( ) : void

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

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

public AddSwitch ( string name, string description ) : void
name string
description string
Результат void

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

public InternalValue ( string name ) : object
name string
Результат object

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

public Parse ( ) : bool
Результат bool

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

public Parser ( string commandLine ) : System
commandLine string
Результат System

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

public Parser ( string commandLine, object classForAutoAttributes ) : System
commandLine string
classForAutoAttributes object
Результат System

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

public this ( string name ) : object
name string
Результат object