C# Класс ToolBelt.CommandLineArgument

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

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

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

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

Метод Описание
CommandLineArgument ( object argTarget, CommandLineArgumentAttribute argAttribute, PropertyInfo argPropertyInfo ) : System

Constructs a new command line argument.

MaybeQuoteString ( string value ) : string

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

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

Tests if the given command is valid. A null or empty command is always valid.
public IsValidForCommand ( string command ) : bool
command string
Результат bool

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

Parse string value and assign to the target object property
/// Duplicate argument OR invalid value. ///
public ParseAndSetTarget ( string argString ) : void
argString string
Результат void

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

Returns the value of the argument as a string
public ToString ( ) : string
Результат string