C# Class SimpleConfigurationManager.SConfigManager

Configuration manager class.
Datei anzeigen Open project: tymanski/SimpleConfigurationManager Class Usage Examples

Public Methods

Method Description
ReadConfigFromFile ( string path ) : string

Reads the configuration string from file and returns it.

This method is handling only reading operation and casting to XML. No XML validation is done here.

SConfigManager ( string configuration ) : System

Initializes a new instance of the TimConfigurationManager.ConfigurationManager class. It parses given configuration which have to be in proper XML format.

ToString ( ) : string

Returns a System.String that represents this instance.

Method Details

ReadConfigFromFile() public static method

Reads the configuration string from file and returns it.
This method is handling only reading operation and casting to XML. No XML validation is done here.
public static ReadConfigFromFile ( string path ) : string
path string Path to the file with configuration.
return string

SConfigManager() public method

Initializes a new instance of the TimConfigurationManager.ConfigurationManager class. It parses given configuration which have to be in proper XML format.
public SConfigManager ( string configuration ) : System
configuration string String containing configuration (in XML format) to be parsed into object.
return System

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string