C# Class Knot3.Framework.Storage.ConfigFile

Repräsentiert eine Einstellungsdatei.
Afficher le fichier Open project: knot3/knot3-code Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
floatToString ( float f ) : string
stringToFloat ( string s ) : float

Method Details

ConfigFile() public méthode

public ConfigFile ( string filename ) : System
filename string
Résultat System

GetOption() public méthode

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
Résultat bool

GetOption() public méthode

public GetOption ( string section, string option, float defaultValue ) : float
section string
option string
defaultValue float
Résultat float

GetOption() public méthode

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
Résultat string

SetOption() public méthode

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
Résultat void

SetOption() public méthode

public SetOption ( string section, string option, float _value ) : void
section string
option string
_value float
Résultat void

SetOption() public méthode

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
Résultat void

this() public méthode

public this ( string section, string option, bool defaultValue = false ) : bool
section string
option string
defaultValue bool
Résultat bool

this() public méthode

public this ( string section, string option, float defaultValue = 0f ) : float
section string
option string
defaultValue float
Résultat float

this() public méthode

public this ( string section, string option, string defaultValue = null ) : string
section string
option string
defaultValue string
Résultat string