C# Class Alexandria.IniFile

.ini configuration file loading.
Datei anzeigen Open project: Burton-Radons/Alexandria

Public Methods

Method 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 method

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

IniFile() public method

Create a new in-memory initialization file.
public IniFile ( ) : System
return System

IniFile() public method

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

IniFile() public method

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

IniFile() public method

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

this() public method

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

this() public method

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

this() public method

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
return string