C# Class CommandLine.Core.SpecificationExtensions

显示文件 Open project: cosmo0/commandline

Public Methods

Method Description
GetMaxValueCount ( this specification ) : Maybe
IsOption ( this specification ) : bool
IsValue ( this specification ) : bool
ThrowingValidate ( this specifications, bool>.IEnumerable guardsLookup ) : IEnumerable
WithLongName ( this specification, string newLongName, System enumValues ) : OptionSpecification

Method Details

GetMaxValueCount() public static method

public static GetMaxValueCount ( this specification ) : Maybe
specification this
return Maybe

IsOption() public static method

public static IsOption ( this specification ) : bool
specification this
return bool

IsValue() public static method

public static IsValue ( this specification ) : bool
specification this
return bool

ThrowingValidate() public static method

public static ThrowingValidate ( this specifications, bool>.IEnumerable guardsLookup ) : IEnumerable
specifications this
guardsLookup bool>.IEnumerable
return IEnumerable

WithLongName() public static method

public static WithLongName ( this specification, string newLongName, System enumValues ) : OptionSpecification
specification this
newLongName string
enumValues System
return OptionSpecification