Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 836 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 836 Bytes

FlexConfig

Nuget

A dynamic configuration library to use with .net projects. Avoid creating oversized configuration objects with dozens or hundreds of properties. Set and get properties dynamically using keys instead! The library uses JSON for storing configurations and can support primitives and user-defined objects alike. Brought to you by SheepGoMeh and kalilistic.

Example

// create config obj
var config = new Configuration("config.json");

// load existing config file at path
config.Load();

// set property
config.Set("isEnabled", false);

// save config file
config.Save();

// retrieve property
var isEnabled = config.Get<bool>("isEnabled");