KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm doing an C# app where I use if ((message.Contains("test"))) { Console.WriteLine("yes"); } else if ((message.Contains("test2"))) { Console.WriteLine("yes for test2"); } There would be any way to change to switch() the if() statements?
Tags (comma-separated)
Save Edits
Cancel