4
Answers

When using a switch statement in C# ?

Photo of Nigel Fernandes

Nigel Fernandes

8y
743
1
Is it ok to write many lines of code in each SWITCH CASE
OR
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 ?
 
Thanks.

Answers (4)