Метод | Описание | |
---|---|---|
Run ( ) : void |
Runs an appropriate Action method. Uses the class this call lives in as target type and command line arguments from Environment
|
|
Run ( Type targetType, string args ) : void |
Runs an appropriate Action method
|
|
Run ( Type targetType, string args, IMessenger messenger ) : void |
Runs an appropriate Action method
|
|
Validate ( Type targetType ) : void |
Validates specified type and throws NConsolerException if an error
|
Метод | Описание | |
---|---|---|
BuildParameterArray ( |
||
CanBeConvertedToDate ( string parameter ) : bool | ||
CanBeNull ( |
||
CheckActionMethodNamesAreNotReserved ( ) : void | ||
CheckAllRequiredParametersAreSet ( |
||
CheckAnyActionMethodExists ( ) : void | ||
CheckOptionalParametersAltNamesAreNotDuplicated ( |
||
CheckOptionalParametersAreAfterRequiredOnes ( |
||
CheckOptionalParametersAreNotDuplicated ( |
||
CheckOptionalParametersDefaultValuesAreAssignableToRealParameterTypes ( |
||
CheckRequiredAndOptionalAreNotAppliedAtTheSameTime ( |
||
CheckUnknownParametersAreNotPassed ( |
||
Consolery ( |
||
ConvertToDateTime ( string parameter ) : System.DateTime | ||
ConvertValue ( string value, |
||
GetCurrentMethod ( ) : |
||
GetDisplayName ( |
||
GetMethodByName ( string name ) : |
||
GetMethodDescription ( |
||
GetOptional ( ICustomAttributeProvider info ) : |
||
GetParametersDescriptions ( |
||
IfActionMethodIsSingleCheckMethodHasParameters ( ) : void | ||
InvokeMethod ( |
||
IsHelpRequested ( ) : bool | ||
IsOptional ( ICustomAttributeProvider info ) : bool | ||
IsRequired ( ICustomAttributeProvider info ) : bool | ||
IsSubcommandHelpRequested ( ) : bool | ||
MaxKeyLength ( string>.IEnumerable |
||
OnlyOptionalParametersSpecified ( |
||
OptionalParameters ( |
||
ParameterName ( string parameter ) : string | ||
ParameterValue ( string parameter ) : string | ||
PrintGeneralMulticommandUsage ( ) : void | ||
PrintMethodDescription ( |
||
PrintParametersDescriptions ( string>.IEnumerable |
||
PrintSubcommandUsage ( ) : void | ||
PrintUsage ( ) : void | ||
PrintUsage ( |
||
PrintUsageExample ( |
||
ProgramName ( ) : string | ||
RequiredParameterCount ( |
||
RunAction ( ) : void | ||
SingleActionWithOnlyOptionalParametersSpecified ( ) : bool | ||
ValidateInput ( MethodInfo method ) : void | ||
ValidateMetadata ( ) : void | ||
ValueDescription ( Type type ) : string |
public static Run ( Type targetType, string args ) : void | ||
targetType | Type | Type where to search for Action methods |
args | string | Arguments that will be converted to Action method arguments |
Результат | void |
public static Run ( Type targetType, string args, IMessenger messenger ) : void | ||
targetType | Type | Type where to search for Action methods |
args | string | Arguments that will be converted to Action method arguments |
messenger | IMessenger | Uses for writing messages instead of Console class methods |
Результат | void |
public static Validate ( Type targetType ) : void | ||
targetType | Type | Type where to search for Action methods |
Результат | void |