C# Class NAnt.Core.Util.CommandLineArgument

Represents a valid command-line argument.
Show file Open project: skolima/NAnt Class Usage Examples

Public Methods

Method Description
CommandLineArgument ( NAnt.Core.Util.CommandLineArgumentAttribute attribute, PropertyInfo propertyInfo ) : System
SetValue ( string value ) : void

Assigns the specified value to the argument.

Private Methods

Method Description
Finish ( object destination ) : void
GetArgumentType ( NAnt.Core.Util.CommandLineArgumentAttribute attribute, PropertyInfo propertyInfo ) : CommandLineArgumentTypes
GetElementType ( PropertyInfo propertyInfo ) : Type
IsArrayType ( Type type ) : bool

Indicates whether the specified Type is an array.

IsCollectionType ( Type type ) : bool

Indicates whether the specified Type is collection-based.

IsNameValueCollectionType ( Type type ) : bool

Indicates whether the specified Type is a NameValueCollection.

ParseValue ( Type type, string stringData ) : object

Method Details

CommandLineArgument() public method

public CommandLineArgument ( NAnt.Core.Util.CommandLineArgumentAttribute attribute, PropertyInfo propertyInfo ) : System
attribute NAnt.Core.Util.CommandLineArgumentAttribute
propertyInfo System.Reflection.PropertyInfo
return System

SetValue() public method

Assigns the specified value to the argument.
/// Duplicate argument. /// -or- /// Invalid value. ///
public SetValue ( string value ) : void
value string The value that should be assigned to the argument.
return void