I\'m having a hard time understanding what the difference is between incrementing a variable in C# this way:
myInt++;
and
It determines when the result for that operation is returned.
Here's an example from the MSDN site:
static void Main() { double x; x = 1.5; Console.WriteLine(++x); x = 1.5; Console.WriteLine(x++); Console.WriteLine(x); }
And the ouput:
2.5 1.5 2.5