-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ROG edited this page May 7, 2022
·
3 revisions
SerializedConfiguration is a library that helps with configuration management by serializing your project configurations in Yaml or Json.
[ConfigSection]
public class ConfigurationModel : IConfigurationModel
{
public Person person { get; set; }
public Person anotherPerson {get; set;}
}
ConfigurationModel configurationModel = new()
{
person = new()
{
name = "Bob",
age = 68
},
anotherPerson = new()
{
name = "Anders",
age = 60
}
};
ConfigManager<ConfigurationModel> configManager = new(Consts.SAVE_FILE_PATH_YAML, SerializationFormat.Yaml, configurationModel);
configManager.Save();