C# Class Alexandria.IniFile

.ini configuration file loading.
Afficher le fichier Open project: Burton-Radons/Alexandria

Méthodes publiques

Méthode Description
FindOrCreateSection ( string name ) : IniFileSection

Return the section with the given name, creating it if necessary.

IniFile ( ) : System

Create a new in-memory initialization file.

IniFile ( IniFileBehavior behavior ) : System

Create a new in-memory initialization file with the defined behavior.

IniFile ( string path ) : System

Create an initialization file, loading from the given path. This path must exist.

IniFile ( string path, IniFileBehavior behavior ) : System

Initialise the file, loading it from the system.

this ( string sectionName ) : IniFileSection

Get a section with the specified name.

this ( string sectionName, string settingName ) : string

Get a value from the .ini file.

this ( string sectionName, string settingName, string defaultValue ) : string

Get a value from the .ini file, supplying a default value if it's not found.

Method Details

FindOrCreateSection() public méthode

Return the section with the given name, creating it if necessary.
public FindOrCreateSection ( string name ) : IniFileSection
name string The name of the section.
Résultat IniFileSection

IniFile() public méthode

Create a new in-memory initialization file.
public IniFile ( ) : System
Résultat System

IniFile() public méthode

Create a new in-memory initialization file with the defined behavior.
public IniFile ( IniFileBehavior behavior ) : System
behavior IniFileBehavior The behavior to follow.
Résultat System

IniFile() public méthode

Create an initialization file, loading from the given path. This path must exist.
public IniFile ( string path ) : System
path string
Résultat System

IniFile() public méthode

Initialise the file, loading it from the system.
public IniFile ( string path, IniFileBehavior behavior ) : System
path string
behavior IniFileBehavior
Résultat System

this() public méthode

Get a section with the specified name.
public this ( string sectionName ) : IniFileSection
sectionName string
Résultat IniFileSection

this() public méthode

Get a value from the .ini file.
public this ( string sectionName, string settingName ) : string
sectionName string
settingName string
Résultat string

this() public méthode

Get a value from the .ini file, supplying a default value if it's not found.
public this ( string sectionName, string settingName, string defaultValue ) : string
sectionName string
settingName string
defaultValue string
Résultat string