1
Vote

simulate Looping using NCalc

description

I am using NCalc (Codeplex library) to evaluate expressions from a text file. I want to simulate a loop like this :

int i = 0;
do {
Console.WriteLine("Value of I is :: {0}", i);
i++;
} while (i<5);
The issue is I am not sure how we can increment and continue looping. Can anyone let me know how we can achieve looping using NCalc ?

comments