C# Class Setty.Settings.SettingsReader

Reads and merges settings from hierarchy of folders
Datei anzeigen Open project: paralect/setty

Public Methods

Method Description
Read ( ) : KeyValueConfigurationCollection

Get merged KeyValueConfigurationCollection

SettingsReader ( String path ) : System

Initializes a new instance of the T:System.Object class.

Private Methods

Method Description
GetApplicationSettingsFromDirectory ( String directoryPath ) : KeyValueConfigurationCollection

Get default configuration file from directory

GetApplicationSettingsFromFile ( String configFilePath ) : KeyValueConfigurationCollection

Load collection from well formed .net configuration file

GetDirectoryAscendants ( String folder ) : List

Will return list of ascendats of folder. Something like this: C:\ C:\Folder C:\Folder\SubFolder C:\Folder\SubFolder\SubSubFolder etc...

Merge ( List paths ) : KeyValueConfigurationCollection

Returns merged settings collection

Method Details

Read() public method

Get merged KeyValueConfigurationCollection
public Read ( ) : KeyValueConfigurationCollection
return System.Configuration.KeyValueConfigurationCollection

SettingsReader() public method

Initializes a new instance of the T:System.Object class.
public SettingsReader ( String path ) : System
path String
return System