Hi If i have switch statement look like this and after getting or display function or by entering wrong character(default) how can i go to same screen which will display different options. As i know there are goto statements but that is not recommended? So please can anybody recommend me what to use or to do?

switch (s)
            {
                case "g":
                uname.getUserName();
                break;
    
                case "v":
                uname.DisplayUserName();
                break;
               
                default:
                Console.WriteLine("Please select correct choice...");

Thnx,
Regards,

Thanks for viewing :)
I have sorted out the problem. Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.