C# Class SimpleConfigurationManager.SConfigManager

Configuration manager class.
Afficher le fichier Open project: tymanski/SimpleConfigurationManager Class Usage Examples

Méthodes publiques

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

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

SConfigManager() public méthode

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

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string