Switch statement
Switch statement is a multiway branch statement. It provides an efficient way to transfer the execution to different parts of a code based on the value of the expression. The switch expression is of type int, char, byte, or short, or of an enumeration type, or of string type. The expression is checked for different cases and the one match is executed.
Before entering coding part of switch statement, we'll study 3rd type of operator called Logical Operator.
CODE
EG 1 . Get Username and Password from user, Create simple Login console application
static void Main(string[] args) {
    //Getting Username
    Console.Write("Enter Username : ");
    string username = Console.ReadLine();
    //Getting Password
    Console.Write("Enter Password : ");
    string password = Console.ReadLine();
    //Here we used Logical AND(&&), so both LHS and RHS condition need to True in order to make entire condition True
    switch (username == "info@coderscapsule.com" && password =="123456789") {
        case true:
        Console.WriteLine("You have unlocked your Phone!!!");
        break;
        case false:
        Console.WriteLine("Invalid Username/Password");
        break;
    }
}
(Click Here, For more exercises)