C# how to exit console with specific command?
By
WereCat
in Programming
in Programming
Go to solution
Solved by colonel_mortis,
I think this should be what you want
string response = Console.ReadLine();if (response.ToLower() == "quit") { //Doesn't matter whether they use upper or lower case //quit} else { //continue}
-
Topics
-
0
-
5
-
1
-
toxic_worper ·
Posted in New Builds and Planning9 -
5
-
1
-
voltigeurramon ·
Posted in Troubleshooting1 -
1
-
1
-
Vibora ·
Posted in New Builds and Planning6
-

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now