SyncPersistableCompat
Ecng.Serialization
The single place that reads and writes objects through the obsolete IPersistable.
方法
IsSyncPersistable
public static bool IsSyncPersistable(Type type)
result = SyncPersistableCompat.IsSyncPersistable(type)
The type implements the obsolete IPersistable.
TryLoadSync
public static bool TryLoadSync(object obj, SettingsStorage storage)
result = SyncPersistableCompat.TryLoadSync(obj, storage)
Loads through IPersistable, if it implements it.
TrySaveSync
public static bool TrySaveSync(object obj, SettingsStorage storage)
result = SyncPersistableCompat.TrySaveSync(obj, storage)
Saves through IPersistable, if it implements it.