Forums - C# Corner

Forum guidelines
Nigel Fernandes

Nigel Fernandes

  • 412
  • 3.7k
  • 183.9k

When using a switch statement in C# ?

Jul 27 2017 10:12 PM
Is it ok to write many lines of code in each SWITCH CASE
for such a situation one must use an IF statement ?
The program works in both scenarios but what is the best practise Or what is followed in industry ?

Answers (4)


Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now