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
If there is common code, that needs to be executed after the if/else block, then option 1.
If the if-else block is the last thing to do in a function, then option 2.
Personally I always use option 1. If there is a return stateent, it comes after the else block