With a lot of C++ background I\'ve got used to writing the following:
const int count = ...; //some non-trivial stuff here for( int i = 0; i < count; i++
You can't assign a variable number to a const. It is a compile time constant.
const
From the C# reference on const:
A constant expression is an expression that can be fully evaluated at compile time.