Which one out of following two is best wrt to performance and standard practice. How does .NET internally handles these two code snippets?
Code1
If(r
I tend to have a single point of exit, which is very useful when implementing locks in a multi-threaded environment, to make sure that the locks are released. With the first implementation, it's harder to do.