I have some values in a configuration file (XML file) with some values like this:
<IncreamentInSeconds>24*60*60</IncreamentInSeconds>
...
I could put 86400 value there, but it is more descriptive as a calculation expression. This is just a simple example. There are some other expressions as well, but they are all in a kind of calculation expressions.
I am not sure if there is any way to parse the expression and to get the result value of it in C#. I thought about Excel component that may be helpful, but I think that might cause performance issue (to load excel worksheet with cell?). Any other way to get the result?
By the way I saw some XCode examples to get expression result by using shell command to evaluate the result (the shell even be able to take variable definitions). Not sure if there is any shell command in Windows that could be used so that I may execute the shell command to get result?