C# Class SANTA.IO.ConfigReader

Exibir arquivo Open project: siegleal/iSanta Class Usage Examples

Public Methods

Method Description
ConfigReader ( ) : System
getConfigValue ( string values ) : HashSet
getValue ( string key ) : string

This method allows the program to access the configuration file using a single interface. Checks the configuration file for the key given and returns either the value, if found, or an exception should the key not exist.

hasValue ( string key ) : bool

Determines if the config file has the specified key. Compares it to the default config file.

setValue ( string key, string value ) : bool

Method Details

ConfigReader() public method

public ConfigReader ( ) : System
return System

getConfigValue() public method

public getConfigValue ( string values ) : HashSet
values string
return HashSet

getValue() public method

This method allows the program to access the configuration file using a single interface. Checks the configuration file for the key given and returns either the value, if found, or an exception should the key not exist.
public getValue ( string key ) : string
key string Key to check the value of.
return string

hasValue() public method

Determines if the config file has the specified key. Compares it to the default config file.
public hasValue ( string key ) : bool
key string Name of the key to check
return bool

setValue() public method

public setValue ( string key, string value ) : bool
key string
value string
return bool