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
SettingsStorageThe 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
SettingsStorageThe SettingsStorage instance to which to save the data.