C# 클래스 ToolBelt.CommandLineArgument

A valid command line argument
파일 보기 프로젝트 열기: jlyonsmith/ToolBelt

공개 메소드들

메소드 설명
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