How to translate a config.ini file into C#.NET objects
- by JACK IN THE CRACK
config.ini:
[globalloads]
plugin.SWPlugin = 1
plugin.SWPlugin.params.1 = true
plugin.SWPlugin.params.2 = 10
[testz : globballoads]
plugin.SWPlugin.params.2 = 20
Simple enough?
// load testz config and programmatically create this equivalent code:
SWPluginAbstract p = new SWPlugin(true, 20);
If a different config.ini setup is needed to do that, it's not a problem...