>int i = 0; >// convert from a string >int i = int.Parse("1"); >// convert froma string and don’t throw exceptions >if (int.TryParse("1", out i)) {} >i++; // increment by one >i--; // decrement by one >i += 10; // add 10 >i -= 10; // subtract 10 >i *= 10; // multiply by 10 >i /= 10; // divide by 10 >They are shorthand notations, and can come in handy. Take a loop:
for (int i = 0; i++; i < 10) { Console.WriteLine("i = " + i); }That will write out the numbers from 0 to 9. If you change the centre part of the 'for' to "++i" instead, it will write out the numbers from 1 to 10.