First code:
if(i==0) {// do instructions here}
Second code:
if(0==i) { // do instructions here }
What
Yep they are same as far as C# is concerned. For more complex situations visit A==B vs B==A, What are the differences