C# 클래스 Alexandria.IniFile

.ini configuration file loading.
파일 보기 프로젝트 열기: Burton-Radons/Alexandria

공개 메소드들

메소드 설명
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