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
Can't say about performance, but Code 1 looks a lot clearer and more logical to me. Jumping out of a function in the middle of an if block appears quite confusing and is easy to overlook.
if