public void ControlFlowWithSwitchStatement()

in 01-Navigation/4-Contextual_navigation/4.4-Navigate_To_menu_control_flow.cs [48:67]


        public void ControlFlowWithSwitchStatement(Size size)
        {
            switch (size)
            {
                case Size.Large:
                    // d) Place the caret on "break". Navigate to → Control Flow Target
                    //    takes the caret to the first statement after the switch
                    break;
                case Size.Medium:
                    // e) Place the caret on "return". Navigate to → Control Flow Target
                    //    takes the caret to the closing brace of the function
                    return;
                case Size.Small:
                    // e) Place the caret on "throw". Navigate to → Control Flow Target
                    //    takes the caret to the closing brace of the function
                    throw new ArgumentOutOfRangeException("size");
            }

            Console.WriteLine("Finished switch");
        }