C# Class SharpOptions.Options

Inheritance: IOptions
ファイルを表示 Open project: repinvv/SharpLogger Class Usage Examples

Public Methods

Method Description
Get ( string key, string defaultValue = null ) : string
GetInt ( string key, int defaultValue ) : int
Options ( ) : System

Empty options without reader

Options ( string path, string name, OptionsReaderType type = OptionsReaderType.Default ) : System
Save ( ) : void
TryAdd ( string key, string value ) : bool
this ( string key ) : string

Private Methods

Method Description
ReadOptions ( ) : void

Method Details

Get() public method

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

GetInt() public method

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

Options() public method

Empty options without reader
public Options ( ) : System
return System

Options() public method

public Options ( string path, string name, OptionsReaderType type = OptionsReaderType.Default ) : System
path string
name string
type OptionsReaderType
return System

Save() public method

public Save ( ) : void
return void

TryAdd() public method

public TryAdd ( string key, string value ) : bool
key string
value string
return bool

this() public method

public this ( string key ) : string
key string
return string