Visual Basic is normally thought of as the more simplistic language when compared to its sibling, C#. But in the area of conditional case blocks, Visual Basic wins on the complexity front. Whereas C# allows you to take action based on simple numeric selection, Visual Basic adds numeric ranges, lists, comparison operators, and even function calls to your selection criteria.
There are ways to increase the complexity in C#. They aren’t the most efficient, and probably aren’t the way you should do things in that language. But if you are a C# programmer who wants to understand the rich features available to Visual Basic developers, check out my latest Visual Studio Magazine article, “Cool Case Clauses in Visual Basic and C#.”
[Image Credits: Visual Studio Magazine]