CSharp · Console
using System;
public class Program
{
public static void Main()
{
var foo = 5;
HandleFoo(foo);
}
private static void HandleFoo(int foo)
{
switch(foo)
{
case 3:
{
Console.WriteLine("Something");
}break;
case 4:
{
Console.WriteLine("Something else");
}break;
case 5:
{
HandleFoo(3);
HandleFoo(4);
}break;
}
}
}