Better Way to Write Switch Statements With Multiple Cases With the Same Result

preview_player
Показать описание

In this video, I will show you how to write better switch expressions that have multiple cases with the same result. You will see how to reduce the number of code lines for the switch statement and also make your code more readable.

In my opinion, the ways I will present in this video significantly impact better code readability. So, let’s see what we can do.

FOLLOW US ON SOCIAL MEDIA!
Рекомендации по теме
Комментарии
Автор

Thank you all for watching and for your support.

CodeMaze
Автор

Nice tutorial thanks.
I love last method.

Totti
Автор

The c# programming language has changed a lot since version 7, and I personally still program in version 5 or 6
The last method is the best, but you have to get used to it because it seems strange but logical :)
As usual, the content is rich and comprehensive, thanks for sharing this

toumir.