C# Class NAnt.Core.Types.Argument

Inheritance: Element
ファイルを表示 Open project: skolima/NAnt Class Usage Examples

Private Properties

Property Type Description
QuoteArgument string

Public Methods

Method Description
Argument ( ) : System

Initializes a new instance of the Argument class.

Argument ( FileInfo value ) : System

Initializes a new instance of the Argument class with the given file.

Argument ( NAnt.Core.Types.PathSet value ) : System

Initializes a new instance of the Argument class with the given path.

Argument ( string value ) : System

Initializes a new instance of the Argument class with the specified command-line argument.

ToString ( ) : string

Returns the argument as a string.

File and individual path elements will be quoted if necessary.

Private Methods

Method Description
QuoteArgument ( string argument ) : string

Quotes a command line argument if it contains a single quote or a space.

Method Details

Argument() public method

Initializes a new instance of the Argument class.
public Argument ( ) : System
return System

Argument() public method

Initializes a new instance of the Argument class with the given file.
public Argument ( FileInfo value ) : System
value System.IO.FileInfo
return System

Argument() public method

Initializes a new instance of the Argument class with the given path.
public Argument ( NAnt.Core.Types.PathSet value ) : System
value NAnt.Core.Types.PathSet
return System

Argument() public method

Initializes a new instance of the Argument class with the specified command-line argument.
public Argument ( string value ) : System
value string
return System

ToString() public method

Returns the argument as a string.
File and individual path elements will be quoted if necessary.
public ToString ( ) : string
return string