Hi All, have a small question. How to disable custom ordering of properties in config file ?
I want to save properties in same way as i create it (Firstly SettingsB, then SettingsA):
In config file i have:Code:protected override void LoadDefaultConfig() { var config = new ConfigData { SettingsB = new Dictionary<string, string> { {"param1", "true"}, {"param2", "true"}, {"param3", "true"} }, SettingsA = new Dictionary<string, string> { {"param1", "true"}, {"param2", "true"} } } SaveConfig(config); } void SaveConfig(ConfigData config) => Config.WriteObject(config, true);
SettingsA
SettingsB
Disabling custom ordering in config file?
Discussion in 'Rust Development' started by Nimant, Apr 9, 2017.