A select statement is one of those logical statements used in programming. These statements require either a true or false answer in order for the program to decide what to do or where to go next. You can easily identify this type statement in VB.net simply because it uses the If and Then logical sequence. In C#, however, the code is a bit more complicated. Here are the basics on how to write such a statement using C#.
You have successfully written a select case statement in C#. The process
is pretty much the same in VB.net but the syntax is not. Hence, try to
determine what will be easier for you. Some people feel more comfy using
C# while others find VB.net’s code syntax a lot friendlier.