C# Class SharpOptions.Options

Inheritance: IOptions
Afficher le fichier Open project: repinvv/SharpLogger Class Usage Examples

Méthodes publiques

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

Méthode Description
ReadOptions ( ) : void

Method Details

Get() public méthode

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

GetInt() public méthode

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

Options() public méthode

Empty options without reader
public Options ( ) : System
Résultat System

Options() public méthode

public Options ( string path, string name, OptionsReaderType type = OptionsReaderType.Default ) : System
path string
name string
type OptionsReaderType
Résultat System

Save() public méthode

public Save ( ) : void
Résultat void

TryAdd() public méthode

public TryAdd ( string key, string value ) : bool
key string
value string
Résultat bool

this() public méthode

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