C# 클래스 Knot3.Framework.Storage.ConfigFile

Repräsentiert eine Einstellungsdatei.
파일 보기 프로젝트 열기: knot3/knot3-code 1 사용 예제들

공개 메소드들

메소드 설명
ConfigFile ( string filename ) : System
GetOption ( string section, string option, bool defaultValue ) : bool

Gibt den aktuell in der Datei vorhandenen Wert für die angegebene Option in dem angegebenen Abschnitt zurück.

GetOption ( string section, string option, float defaultValue ) : float
GetOption ( string section, string option, string defaultValue ) : string

Gibt den aktuell in der Datei vorhandenen Wert für die angegebene Option in dem angegebenen Abschnitt zurück.

SetOption ( string section, string option, bool _value ) : void

Setzt den Wert der Option mit dem angegebenen Namen in den angegebenen Abschnitt auf den angegebenen Wert.

SetOption ( string section, string option, float _value ) : void
SetOption ( string section, string option, string _value ) : void

Setzt den Wert der Option mit dem angegebenen Namen in den angegebenen Abschnitt auf den angegebenen Wert.

this ( string section, string option, bool defaultValue = false ) : bool
this ( string section, string option, float defaultValue = 0f ) : float
this ( string section, string option, string defaultValue = null ) : string

비공개 메소드들

메소드 설명
floatToString ( float f ) : string
stringToFloat ( string s ) : float

메소드 상세

ConfigFile() 공개 메소드

public ConfigFile ( string filename ) : System
filename string
리턴 System

GetOption() 공개 메소드

Gibt den aktuell in der Datei vorhandenen Wert für die angegebene Option in dem angegebenen Abschnitt zurück.
public GetOption ( string section, string option, bool defaultValue ) : bool
section string
option string
defaultValue bool
리턴 bool

GetOption() 공개 메소드

public GetOption ( string section, string option, float defaultValue ) : float
section string
option string
defaultValue float
리턴 float

GetOption() 공개 메소드

Gibt den aktuell in der Datei vorhandenen Wert für die angegebene Option in dem angegebenen Abschnitt zurück.
public GetOption ( string section, string option, string defaultValue ) : string
section string
option string
defaultValue string
리턴 string

SetOption() 공개 메소드

Setzt den Wert der Option mit dem angegebenen Namen in den angegebenen Abschnitt auf den angegebenen Wert.
public SetOption ( string section, string option, bool _value ) : void
section string
option string
_value bool
리턴 void

SetOption() 공개 메소드

public SetOption ( string section, string option, float _value ) : void
section string
option string
_value float
리턴 void

SetOption() 공개 메소드

Setzt den Wert der Option mit dem angegebenen Namen in den angegebenen Abschnitt auf den angegebenen Wert.
public SetOption ( string section, string option, string _value ) : void
section string
option string
_value string
리턴 void

this() 공개 메소드

public this ( string section, string option, bool defaultValue = false ) : bool
section string
option string
defaultValue bool
리턴 bool

this() 공개 메소드

public this ( string section, string option, float defaultValue = 0f ) : float
section string
option string
defaultValue float
리턴 float

this() 공개 메소드

public this ( string section, string option, string defaultValue = null ) : string
section string
option string
defaultValue string
리턴 string