Let's say that my code has a class defined as so:
class test{
bool var;
public test(){}
}
In my main function, I create an object of the sort, and set var to true.
After that I parse some XML files that contain the following:
<param name="var" value="false"/>
I read that var must be false, and set it to false.
This is great and all, but the issue is maintainability. It seems like a lot of trouble to maintain this, since if someone changes a variable name in the code, they will have to change all of the XML files.
Is there some easy way around this? Or at least an easy way to maintain this? The only thing I can think of right now is some meta-script that will somehow edit the XML and c# code, but this seems like a lot of work, and honestly quite hacky.