C# Class SphereStudio.IniSettings

Inheritance: ISettings
显示文件 Open project: Radnen/spherestudio Class Usage Examples

Public Methods

Method Description
GetBoolean ( string key, bool defValue ) : bool
GetFloat ( string key, double defValue ) : double
GetInteger ( string key, int defValue ) : int
GetString ( string key, string defValue ) : string
GetStringArray ( string key, string defValues ) : string[]
IniSettings ( IniFile ini, string section ) : System
Save ( ) : bool
SaveAs ( string filepath ) : bool
SetValue ( string key, object value ) : void

Method Details

GetBoolean() public method

public GetBoolean ( string key, bool defValue ) : bool
key string
defValue bool
return bool

GetFloat() public method

public GetFloat ( string key, double defValue ) : double
key string
defValue double
return double

GetInteger() public method

public GetInteger ( string key, int defValue ) : int
key string
defValue int
return int

GetString() public method

public GetString ( string key, string defValue ) : string
key string
defValue string
return string

GetStringArray() public method

public GetStringArray ( string key, string defValues ) : string[]
key string
defValues string
return string[]

IniSettings() public method

public IniSettings ( IniFile ini, string section ) : System
ini IniFile
section string
return System

Save() public method

public Save ( ) : bool
return bool

SaveAs() public method

public SaveAs ( string filepath ) : bool
filepath string
return bool

SetValue() public method

public SetValue ( string key, object value ) : void
key string
value object
return void