Net-informations.com
SiteMap  | About    

switch case



The switch statement allows you to choose from many statements based on multiple selections by passing control to one of the case statements within its body. The switch statement can include any number of case instances. In VB.Net it is using as Select...Case statement and C# it is using as switch..case .

VB.Net

C#

The following ASP.NET program evaluates which value is passing in case statement.

Default.aspx




Click the following links to see full source code

C# Source Code
VB.NET Source Code
Default.aspx.cs
Default.aspx.vb





net-informations.com (C) 2019    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.