Table of Contents

Interface IPersistable

Namespace
Ecng.Serialization
Assembly
Ecng.Serialization.dll

Interface for objects whose state can be persisted synchronously using a SettingsStorage.

public interface IPersistable
Extension Methods

Methods

Load(SettingsStorage)

Loads the state of the object from the specified SettingsStorage.

void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

The SettingsStorage instance from which to load the data.

Save(SettingsStorage)

Saves the state of the object to the specified SettingsStorage.

void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

The SettingsStorage instance to which to save the data.