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

Inheritance: IConfig
Afficher le fichier Open project: debop/NFramework Class Usage Examples

Protected Properties

Свойство Type Description
keys NSoft.NFramework.Nini.Util.OrderedList

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnKeyRemoved ( ConfigKeyEventArgs e ) : void
OnKeySet ( ConfigKeyEventArgs e ) : void

Private Methods

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

public Add ( string key, string value ) : void
key string
value string
Résultat void

ConfigBase() public méthode

public ConfigBase ( string name, IConfigSource source ) : System
name string
source IConfigSource
Résultat System

Contains() public méthode

public Contains ( string key ) : bool
key string
Résultat bool

Get() public méthode

public Get ( string key ) : string
key string
Résultat string

Get() public méthode

public Get ( string key, string defaultValue ) : string
key string
defaultValue string
Résultat string

GetBoolean() public méthode

public GetBoolean ( string key ) : bool
key string
Résultat bool

GetBoolean() public méthode

public GetBoolean ( string key, bool defaultValue ) : bool
key string
defaultValue bool
Résultat bool

GetDouble() public méthode

public GetDouble ( string key ) : double
key string
Résultat double

GetDouble() public méthode

public GetDouble ( string key, double defaultValue ) : double
key string
defaultValue double
Résultat double

GetExpanded() public méthode

public GetExpanded ( string key ) : string
key string
Résultat string

GetFloat() public méthode

public GetFloat ( string key ) : float
key string
Résultat float

GetFloat() public méthode

public GetFloat ( string key, float defaultValue ) : float
key string
defaultValue float
Résultat float

GetInt() public méthode

public GetInt ( string key ) : int
key string
Résultat int

GetInt() public méthode

public GetInt ( string key, bool fromAlias ) : int
key string
fromAlias bool
Résultat int

GetInt() public méthode

public GetInt ( string key, int defaultValue ) : int
key string
defaultValue int
Résultat int

GetInt() public méthode

public GetInt ( string key, int defaultValue, bool fromAlias ) : int
key string
defaultValue int
fromAlias bool
Résultat int

GetKeys() public méthode

public GetKeys ( ) : string[]
Résultat string[]

GetLong() public méthode

public GetLong ( string key ) : long
key string
Résultat long

GetLong() public méthode

public GetLong ( string key, long defaultValue ) : long
key string
defaultValue long
Résultat long

GetString() public méthode

public GetString ( string key ) : string
key string
Résultat string

GetString() public méthode

public GetString ( string key, string defaultValue ) : string
key string
defaultValue string
Résultat string

GetValues() public méthode

public GetValues ( ) : string[]
Résultat string[]

OnKeyRemoved() protected méthode

protected OnKeyRemoved ( ConfigKeyEventArgs e ) : void
e ConfigKeyEventArgs
Résultat void

OnKeySet() protected méthode

protected OnKeySet ( ConfigKeyEventArgs e ) : void
e ConfigKeyEventArgs
Résultat void

Remove() public méthode

public Remove ( string key ) : void
key string
Résultat void

Set() public méthode

public Set ( string key, object value ) : void
key string
value object
Résultat void

Property Details

keys protected_oe property

protected OrderedList,NSoft.NFramework.Nini.Util keys
Résultat NSoft.NFramework.Nini.Util.OrderedList