C# Class ConfigFile, UnityFramework

Inheritance: System.Web.UI.Page
Show file Open project: meta-42/uEasyKit Class Usage Examples

Public Methods

Method Description
GetBool ( string section, string key, bool default_value = false ) : bool
GetFloat ( string section, string key, float default_value = 0.0f ) : float
GetInt ( string section, string key, int default_value ) : int
GetSectionList ( ) : Dictionary>
GetString ( string section, string key, string default_value = "" ) : string
GetUInt32 ( string section, string key, uint default_value ) : uint
Load ( Stream ms ) : bool
Load ( byte buff ) : bool
Load ( string path ) : bool
Save ( ) : bool
SetBool ( string section, string key, bool define_value ) : void
SetFloat ( string section, string key, float define_value ) : void
SetInt ( string section, string key, int define_value ) : void
SetString ( string section, string key, string define_value ) : void
SetUInt32 ( string section, string key, uint define_value ) : void
Write ( Stream stream ) : bool
Write ( string path ) : bool

Private Methods

Method Description
FindValue ( string section, string key, string default_value ) : string
SetValue ( string section, string key, string define_value ) : void
parse ( StreamReader stream ) : bool

Method Details

GetBool() public method

public GetBool ( string section, string key, bool default_value = false ) : bool
section string
key string
default_value bool
return bool

GetFloat() public method

public GetFloat ( string section, string key, float default_value = 0.0f ) : float
section string
key string
default_value float
return float

GetInt() public method

public GetInt ( string section, string key, int default_value ) : int
section string
key string
default_value int
return int

GetSectionList() public method

public GetSectionList ( ) : Dictionary>
return Dictionary>

GetString() public method

public GetString ( string section, string key, string default_value = "" ) : string
section string
key string
default_value string
return string

GetUInt32() public method

public GetUInt32 ( string section, string key, uint default_value ) : uint
section string
key string
default_value uint
return uint

Load() public method

public Load ( Stream ms ) : bool
ms Stream
return bool

Load() public method

public Load ( byte buff ) : bool
buff byte
return bool

Load() public method

public Load ( string path ) : bool
path string
return bool

Save() public method

public Save ( ) : bool
return bool

SetBool() public method

public SetBool ( string section, string key, bool define_value ) : void
section string
key string
define_value bool
return void

SetFloat() public method

public SetFloat ( string section, string key, float define_value ) : void
section string
key string
define_value float
return void

SetInt() public method

public SetInt ( string section, string key, int define_value ) : void
section string
key string
define_value int
return void

SetString() public method

public SetString ( string section, string key, string define_value ) : void
section string
key string
define_value string
return void

SetUInt32() public method

public SetUInt32 ( string section, string key, uint define_value ) : void
section string
key string
define_value uint
return void

Write() public method

public Write ( Stream stream ) : bool
stream Stream
return bool

Write() public method

public Write ( string path ) : bool
path string
return bool