Answers for "c# => code switch when example"

C#
3

switch c#

var caseSwitch = 1;
switch (caseSwitch)
  {
    case 1:
      Console.WriteLine("Case 1");
      break;
    case 2:
      Console.WriteLine("Case 2");
      break;
    default:
      Console.WriteLine("Default case");
      break;
  }
Posted by: Guest on January-26-2021

C# Answers by Framework

Browse Popular Code Answers by Language