Hi, if in a file i have the following:
<variable type="String">Hello World</variable>
<variable type="Int32">29</variable>
How can i create these variables in my application? (Ignore the reading
of the text in, that part is easy).
I guess it would be easy enough by doing a giant "if" statement, but
thats a horrible solution.
if (type == "Int32")
var = Int32.Parse(value);
else if (type == "String")
var = value;
etc etc
Any help or tips?