Nucs / JsonSettings

This library simplifies creating configuration for your C# app/service by utilizing the serialization capabilities of Json.NET to serialize nested (custom) objects, dictionaries and lists as simply as by creating a POCO and inheriting JsonSettings class.
MIT License
76 stars 18 forks source link

[Feature Request] Autosave should be capable of suspending saving for batch changes #26

Closed Nucs closed 3 years ago

Nucs commented 3 years ago
var o = JsonSettings.Load<MySettings>(f.FileName)
                    .EnableAutosave();
using (o.SuspendAutosave()) {
    o.property = "hi"; //not saved
    o.property = "hi2"; //not saved
} //saved