C# Class SANTA.IO.ConfigReader

Afficher le fichier Open project: siegleal/iSanta Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public ConfigReader ( ) : System
Résultat System

getConfigValue() public méthode

public getConfigValue ( string values ) : HashSet
values string
Résultat HashSet

getValue() public méthode

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.
Résultat string

hasValue() public méthode

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
Résultat bool

setValue() public méthode

public setValue ( string key, string value ) : bool
key string
value string
Résultat bool