C# Class NSoft.NFramework.Nini.Config.ConfigBase

Inheritance: IConfig
显示文件 Open project: debop/NFramework Class Usage Examples

Protected Properties

Property Type Description
keys NSoft.NFramework.Nini.Util.OrderedList

Public Methods

Method Description
Add ( string key, string value ) : void
ConfigBase ( string name, IConfigSource source ) : System
Contains ( string key ) : bool
Get ( string key ) : string
Get ( string key, string defaultValue ) : string
GetBoolean ( string key ) : bool
GetBoolean ( string key, bool defaultValue ) : bool
GetDouble ( string key ) : double
GetDouble ( string key, double defaultValue ) : double
GetExpanded ( string key ) : string
GetFloat ( string key ) : float
GetFloat ( string key, float defaultValue ) : float
GetInt ( string key ) : int
GetInt ( string key, bool fromAlias ) : int
GetInt ( string key, int defaultValue ) : int
GetInt ( string key, int defaultValue, bool fromAlias ) : int
GetKeys ( ) : string[]
GetLong ( string key ) : long
GetLong ( string key, long defaultValue ) : long
GetString ( string key ) : string
GetString ( string key, string defaultValue ) : string
GetValues ( ) : string[]
Remove ( string key ) : void
Set ( string key, object value ) : void

Protected Methods

Method Description
OnKeyRemoved ( ConfigKeyEventArgs e ) : void
OnKeySet ( ConfigKeyEventArgs e ) : void

Private Methods

Method Description
GetBooleanAlias ( string key ) : bool

Returns the boolean alias first from this IConfig then the parent if there is none.

GetIntAlias ( string key, string alias ) : int

Returns the integer alias first from this IConfig then the parent if there is none.

Rename ( string name ) : void

Renames the config to the new name.

Method Details

Add() public method

public Add ( string key, string value ) : void
key string
value string
return void

ConfigBase() public method

public ConfigBase ( string name, IConfigSource source ) : System
name string
source IConfigSource
return System

Contains() public method

public Contains ( string key ) : bool
key string
return bool

Get() public method

public Get ( string key ) : string
key string
return string

Get() public method

public Get ( string key, string defaultValue ) : string
key string
defaultValue string
return string

GetBoolean() public method

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

GetBoolean() public method

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

GetDouble() public method

public GetDouble ( string key ) : double
key string
return double

GetDouble() public method

public GetDouble ( string key, double defaultValue ) : double
key string
defaultValue double
return double

GetExpanded() public method

public GetExpanded ( string key ) : string
key string
return string

GetFloat() public method

public GetFloat ( string key ) : float
key string
return float

GetFloat() public method

public GetFloat ( string key, float defaultValue ) : float
key string
defaultValue float
return float

GetInt() public method

public GetInt ( string key ) : int
key string
return int

GetInt() public method

public GetInt ( string key, bool fromAlias ) : int
key string
fromAlias bool
return int

GetInt() public method

public GetInt ( string key, int defaultValue ) : int
key string
defaultValue int
return int

GetInt() public method

public GetInt ( string key, int defaultValue, bool fromAlias ) : int
key string
defaultValue int
fromAlias bool
return int

GetKeys() public method

public GetKeys ( ) : string[]
return string[]

GetLong() public method

public GetLong ( string key ) : long
key string
return long

GetLong() public method

public GetLong ( string key, long defaultValue ) : long
key string
defaultValue long
return long

GetString() public method

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

GetString() public method

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

GetValues() public method

public GetValues ( ) : string[]
return string[]

OnKeyRemoved() protected method

protected OnKeyRemoved ( ConfigKeyEventArgs e ) : void
e ConfigKeyEventArgs
return void

OnKeySet() protected method

protected OnKeySet ( ConfigKeyEventArgs e ) : void
e ConfigKeyEventArgs
return void

Remove() public method

public Remove ( string key ) : void
key string
return void

Set() public method

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

Property Details

keys protected_oe property

protected OrderedList,NSoft.NFramework.Nini.Util keys
return NSoft.NFramework.Nini.Util.OrderedList