Spot the Bug! Much ado about Nothing Part 2! (Jonathan Aneja)

Posted by: The Visual Basic Team, on 06 Nov 2009 | View original | Bookmarked: 0 time(s)

In yesterdays post we saw that the use of the wrong comparison operator with Nothing in an If block can lead to surprising results.  Lets look at a slightly different case today:           Dim x As Integer = Nothing           If x = Nothing Then             MsgBox("A true statement - we land here")         Else            ...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: VB.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 662 | Hits: 18

Similar Posts

  • How to define state machine in Windows Workflow Foundation (WF) more
  • Driving a "no bugs" team culture - level 200 more
  • What an interesting few days... more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD