Answers for "expression c# switch"

C#
0

switch c#

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-15-2021

C# Answers by Framework

Browse Popular Code Answers by Language