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

The difference between EnableIAutosave and EnableAutosave #16

Closed ghost1372 closed 3 years ago

ghost1372 commented 3 years ago

What is the difference between EnableIAutosave and EnableAutosave?

Settings x  = JsonSettings.Load<Settings>().EnableAutosave();

ISettings x = JsonSettings.Load<Settings>().EnableIAutosave<ISettings>();

Also, is it possible to update the documentation and write a little clearer?

Nucs commented 3 years ago

One returns a wrapped Settings object, The other wrapped Settings object where only ISettings is exposed. Essentially for when you want to use interface vs class.