C# Class ConsoleFizzler.CommandLine

显示文件 Open project: atifaziz/Fizzler

Public Methods

Method Description
ParseFileTo ( string path, object target ) : string[]

Updates object from command-line arguments in a response file.

Line in the response file that begin with a hash (#) are considered as comments.

ParseFileTo ( string path, object target, PropertyDescriptorCollection properties ) : string[]

Updates object from command-line arguments in a response file properties describes the target object.

Line in the response file that begin with a hash (#) are considered as comments.

ParseTo ( IEnumerable args, object target ) : string[]

Updates object from command-line arguments.

ParseTo ( IEnumerable args, object target, PropertyDescriptorCollection properties ) : string[]

Updates object from command-line arguments where properties describes the target object.

ToArgs ( string>.IEnumerable args ) : IEnumerable

Returns a sequence of args from a sequence of pair where each key is prefixed with a switch token classic for the platform.

ToArgs ( string>.IEnumerable args, string switchToken ) : IEnumerable

Returns a sequence of args from a sequence of pair where each key is prefixed with switchToken.

Private Methods

Method Description
ArgsFromImpl ( string>.IEnumerable args, string switchToken ) : IEnumerable
CommandLineToArgs ( string commandLine ) : string[]
CommandLineToArgvW ( [ lpCmdLine, int &pNumArgs ) : IntPtr

Method Details

ParseFileTo() public static method

Updates object from command-line arguments in a response file.
Line in the response file that begin with a hash (#) are considered as comments.
public static ParseFileTo ( string path, object target ) : string[]
path string
target object
return string[]

ParseFileTo() public static method

Updates object from command-line arguments in a response file properties describes the target object.
Line in the response file that begin with a hash (#) are considered as comments.
public static ParseFileTo ( string path, object target, PropertyDescriptorCollection properties ) : string[]
path string
target object
properties System.ComponentModel.PropertyDescriptorCollection
return string[]

ParseTo() public static method

Updates object from command-line arguments.
public static ParseTo ( IEnumerable args, object target ) : string[]
args IEnumerable
target object
return string[]

ParseTo() public static method

Updates object from command-line arguments where properties describes the target object.
public static ParseTo ( IEnumerable args, object target, PropertyDescriptorCollection properties ) : string[]
args IEnumerable
target object
properties System.ComponentModel.PropertyDescriptorCollection
return string[]

ToArgs() public static method

Returns a sequence of args from a sequence of pair where each key is prefixed with a switch token classic for the platform.
public static ToArgs ( string>.IEnumerable args ) : IEnumerable
args string>.IEnumerable
return IEnumerable

ToArgs() public static method

Returns a sequence of args from a sequence of pair where each key is prefixed with switchToken.
public static ToArgs ( string>.IEnumerable args, string switchToken ) : IEnumerable
args string>.IEnumerable
switchToken string
return IEnumerable