C# 클래스 WinCompose.SettingsEntry

The base class to represent an entry in the settings file. It handles thread-safe and process-safe saving and loading.
파일 보기 프로젝트 열기: samhocevar/wincompose 1 사용 예제들

공개 메소드들

메소드 설명
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