C# Класс Alexandria.IniFile

.ini configuration file loading.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

FindOrCreateSection() публичный метод

Return the section with the given name, creating it if necessary.
public FindOrCreateSection ( string name ) : IniFileSection
name string The name of the section.
Результат IniFileSection

IniFile() публичный метод

Create a new in-memory initialization file.
public IniFile ( ) : System
Результат System

IniFile() публичный метод

Create a new in-memory initialization file with the defined behavior.
public IniFile ( IniFileBehavior behavior ) : System
behavior IniFileBehavior The behavior to follow.
Результат System

IniFile() публичный метод

Create an initialization file, loading from the given path. This path must exist.
public IniFile ( string path ) : System
path string
Результат System

IniFile() публичный метод

Initialise the file, loading it from the system.
public IniFile ( string path, IniFileBehavior behavior ) : System
path string
behavior IniFileBehavior
Результат System

this() публичный метод

Get a section with the specified name.
public this ( string sectionName ) : IniFileSection
sectionName string
Результат IniFileSection

this() публичный метод

Get a value from the .ini file.
public this ( string sectionName, string settingName ) : string
sectionName string
settingName string
Результат string

this() публичный метод

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
Результат string