c# switct case
using System;
public class Example
{
public static void Main()
{
int caseSwitch = 1;
switch (caseSwitch)
{
case 1:
Console.WriteLine("Case 1");
break;
case 2:
Console.WriteLine("Case 2");
break;
default:
Console.WriteLine("Default case");
break;
}
}
}
// The example displays the following output:
// Case 1
Also in C#:
- c# create a text file
- c# print expression tree
- c# typeof
- C# array to label
- unity rotate around axis
- escape double quotes c#
- countdown script in unity
- c sharp list indexer
- c# switct case
- c# string
- c# how to use inovke
- c# console delay
- jumping with character controller unity
- load information with txt file to uwp c#
- check if two timespans intersect c#
- devexpress objectspace to session
- C# webclient submit form
- c# download string url
- defualtsize UWP c#
- @Html.ActionLink
- c# string array
- how to declare a string c#
- how to make a pause feautre in unity
- c# print to console