just curiosity because I guess there isn't much I could do about it....
if I write
byte[] buf = ...;
int N = ...;
for(int i=0; i<N; i++)
do(buf[i]);
will the code do a bound checking on the array on every single access to
buf[i] or will it recognises that N, and buf.Length are constant and
optimize to only one bounds checking?
--
If you're in a war, instead of throwing a hand grenade at the enemy, throw
one of those small pumpkins. Maybe it'll make everyone think how stupid war
is, and while they are thinking, you can throw a real grenade at them.
Jack Handey.