C# Class CCNet.Build.Common.ArgumentProperties

Works with command line properties.
Inheritance: IConfigReader
Show file Open project: shuruev/CCNet.Extensions

Public Methods

Method Description
Add ( string key, string value ) : void

Adds a new property.

ArgumentProperties ( ) : System

Initializes a new instance.

Contains ( string key ) : bool

Checks whether specified property exists.

GetValue ( string key ) : string

Gets configuration value by specified key. Returns null if value does not exist.

Parse ( IEnumerable arguments ) : void

Parses a list of argument properties.

Remove ( string key ) : void

Removes specified property.

Method Details

Add() public method

Adds a new property.
public Add ( string key, string value ) : void
key string
value string
return void

ArgumentProperties() public method

Initializes a new instance.
public ArgumentProperties ( ) : System
return System

Contains() public method

Checks whether specified property exists.
public Contains ( string key ) : bool
key string
return bool

GetValue() public method

Gets configuration value by specified key. Returns null if value does not exist.
public GetValue ( string key ) : string
key string
return string

Parse() public method

Parses a list of argument properties.
public Parse ( IEnumerable arguments ) : void
arguments IEnumerable
return void

Remove() public method

Removes specified property.
public Remove ( string key ) : void
key string
return void