Qus:    If you want to replace multiple if-else statements in code, which statement will you use?
Nov 02, 2020 11:16 DotNet 2 Answers Views: 1190 KRISHNA SWAROOP
Prev Next
Answers (2)
DIVYA Nov 03, 2020 08:44
Answer:   In Visual basic, we can use Select-Case statement to replace multiple If-Else statement. In C#, we should use Switch-Case statement to replace multiple If-Else statement.

PARTH Nov 10, 2020 14:14
Answer:   You can use the switch statement if you want to replace multiple if-else statements in your code.

Post Your Answer
Guest User

Not sure what solution is right for you?

Choose the right one for you.
Get the help of the experts and find a solution that best suits your needs.


Let`s Connect