установить элементы на 42 назад

for (int i = myArray.Length - 1; i >= 0; i--)
{
    // Do something
    myArray[i] = 42;
}
Xanthous Xenomorph