G
Guest
Hi!
I have a simple doubt abt the performance when comparing variables with
constats values..
Can any one tell me whether to use
1.
int a;
if(a==10)
{
MessageBox.Show("done");
}
Or
2.
int a;
if(10==a)
{
MessageBox.Show("done");
}
for comparing a variable.. which one will be wise to use if we are
considering performance to be critical and why??
thanks,
Baren
I have a simple doubt abt the performance when comparing variables with
constats values..
Can any one tell me whether to use
1.
int a;
if(a==10)
{
MessageBox.Show("done");
}
Or
2.
int a;
if(10==a)
{
MessageBox.Show("done");
}
for comparing a variable.. which one will be wise to use if we are
considering performance to be critical and why??
thanks,
Baren