Tag Archives: Bug

Subtle Bug: VB.Net Dim Statement

Here is a question for you – are the following pieces of code equivalent? Declaration followed by Explicit Initializer [sourcecode language=”vb”] Dim b As Boolean b = False Console.WriteLine(b.ToString) [/sourcecode] Declaration with Implicit Implicit Initializer [sourcecode language=”vb”] Dim b As … Continue reading

Posted in VB.Net | Tagged | 2 Comments