Declaring variables inside-versus-outside loops

IN .NET, there is no difference between declaring variables inside loops and declaring variables outside loops. Here is the proof. Here are two programs inside.cs and outside.cs, appropriately named to reflect the two ways respectively. And, here is the ILASM obtained by disassembling inside.exe and outside.exe. As you can see, the two are the same. [...]

Read the Full Article by Eddy