C# Класс WinCompose.SettingsEntry

The base class to represent an entry in the settings file. It handles thread-safe and process-safe saving and loading.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Описание методов

Deserialize() защищенный абстрактный Метод

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.
Результат object

Load() публичный Метод

Loads this settings entry from the settings file. This operation is thread-safe and process-safe.
public Load ( ) : bool
Результат bool

Save() публичный Метод

Saves this settings entry into the settings file. This operation is thread-safe and process-safe.
public Save ( ) : bool
Результат bool

Serialize() защищенный абстрактный Метод

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.
Результат string

SettingsEntry() защищенный Метод

protected SettingsEntry ( string section, string key, object defaultValue ) : System
section string
key string
defaultValue object
Результат System