C# Класс Alexandria.IniFileSection

A section within an IniFile.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetMultiple ( string settingName ) : List

Return all settings with the specified name. If the setting does not exist, an empty list is returned.

IniFileSection ( IniFile file, string name ) : System

Initialise the section.

this ( string settingName ) : string

Get or set a setting. Assignment removes all settings but the new value, if there are more than one.

this ( string settingName, string defaultValue ) : string

Get a value of a setting. If the setting doesn't exist, this returns defaultValue.

Приватные методы

Метод Описание
GetBase ( IniFileSetting setting ) : string

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

GetMultiple() публичный Метод

Return all settings with the specified name. If the setting does not exist, an empty list is returned.
public GetMultiple ( string settingName ) : List
settingName string
Результат List

IniFileSection() публичный Метод

Initialise the section.
public IniFileSection ( IniFile file, string name ) : System
file IniFile
name string
Результат System

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

Get or set a setting. Assignment removes all settings but the new value, if there are more than one.
public this ( string settingName ) : string
settingName string
Результат string

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

Get a value of a setting. If the setting doesn't exist, this returns defaultValue.
public this ( string settingName, string defaultValue ) : string
settingName string
defaultValue string
Результат string