C# Class Alexandria.IniFileSection

A section within an IniFile.
显示文件 Open project: Burton-Radons/Alexandria Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
GetBase ( IniFileSetting setting ) : string

Method Details

GetMultiple() public method

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

IniFileSection() public method

Initialise the section.
public IniFileSection ( IniFile file, string name ) : System
file IniFile
name string
return System

this() public method

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

this() public method

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