araujofrancisco / CustomConfig

Library that allows simple setup custom json configuration to load and save settings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CustomConfig

Allows to load/save a custom configuration JSON file.

Usage

  • Add the library reference to your project.
  • Implement the ICustomConfig interface to allow object initialization.
  • Create an instance of the CustomConfig using your config class and load the configuration.
    CustomConfig<MyConfig> config = new(Filename);
    bool loaded = await config.LoadConfigAsync();
  • Saving can be done doing a simple call to SaveConfigAsync().
    bool saved = await config.SaveConfigAsync();

About

Library that allows simple setup custom json configuration to load and save settings.

License:MIT License


Languages

Language:C# 100.0%