C# Class WinCompose.SettingsEntry

The base class to represent an entry in the settings file. It handles thread-safe and process-safe saving and loading.
Afficher le fichier Open project: samhocevar/wincompose Class Usage Examples

Méthodes publiques

Méthode Description
Load ( ) : bool

Loads this settings entry from the settings file. This operation is thread-safe and process-safe.

Save ( ) : bool

Saves this settings entry into the settings file. This operation is thread-safe and process-safe.

Méthodes protégées

Méthode Description
Deserialize ( string str ) : object

Deserializes the given string into an object of the type of this entry. This method should not throw any unhandled exception.

Serialize ( object value ) : string

Serializes the given value into a string. This method should not throw any unhandled exception.

SettingsEntry ( string section, string key, object defaultValue ) : System

Method Details

Deserialize() protected abstract méthode

Deserializes the given string into an object of the type of this entry. This method should not throw any unhandled exception.
protected abstract Deserialize ( string str ) : object
str string The string to deserialize.
Résultat object

Load() public méthode

Loads this settings entry from the settings file. This operation is thread-safe and process-safe.
public Load ( ) : bool
Résultat bool

Save() public méthode

Saves this settings entry into the settings file. This operation is thread-safe and process-safe.
public Save ( ) : bool
Résultat bool

Serialize() protected abstract méthode

Serializes the given value into a string. This method should not throw any unhandled exception.
protected abstract Serialize ( object value ) : string
value object The value to serialize.
Résultat string

SettingsEntry() protected méthode

protected SettingsEntry ( string section, string key, object defaultValue ) : System
section string
key string
defaultValue object
Résultat System