Additionally ... why to depend on some one else..
Open up a console app..
write two method.. and do some updates to a variable using 'this' and
without using 'this'..
eg
private int i = 0;
private void checkthis()
{
this.i ++;
}
private void checknothis()
{
i++;
}
Compile this and check the IL... using ildasm.exe
You will see that both the IL are indentical which guranteed that there is
no performance cost at all...
In addition...
if (condition)
{
line
}
if (condition)
line
also don't have any difference..
Nirosh..
"Champika Nirosh" <te**@test.lk> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...
Guranteed... No at all........
Nirosh.
"Matt Swift" <ma**********@deletethisbitplshotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... If source contains lots of this. statements, does this incur any kind of
minor performance hit, I'd imagine it does as it's causing a check to be
performed?
Thanks