I need to move backwards through an array, so I have code like this:
for (int i = myArray.Length - 1; i >= 0; i--) { // Do something myArray[i] =
In C I like to do this:
int i = myArray.Length; while (i--) { myArray[i] = 42; }
C# example added by MusiGenesis:
{int i = myArray.Length; while (i-- > 0) { myArray[i] = 42; }}