/CustomConfig

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

Primary LanguageC#MIT LicenseMIT

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();