Moving from the switch statement to switch expressions
-
Switch expressions and enhanced pattern matching are great new concepts working together with C# 8.
For those switching switches
"Compared to the switch statement the essentials of the code are easier to grasp..." uh... "...as soon as you are used to Lambda expressions." Well, that explains it then.
-
Switch expressions and enhanced pattern matching are great new concepts working together with C# 8.
For those switching switches
"Compared to the switch statement the essentials of the code are easier to grasp..." uh... "...as soon as you are used to Lambda expressions." Well, that explains it then.
And
Quote:
With the code sample I’ve also used the C# 8 feature nullable reference types.
to make it even more different than the older code.
-
And
Quote:
With the code sample I’ve also used the C# 8 feature nullable reference types.
to make it even more different than the older code.
Change for change's sake.
I wanna be a eunuchs developer! Pass me a bread knife!
-
Change for change's sake.
I wanna be a eunuchs developer! Pass me a bread knife!
-
Switch expressions and enhanced pattern matching are great new concepts working together with C# 8.
For those switching switches
"Compared to the switch statement the essentials of the code are easier to grasp..." uh... "...as soon as you are used to Lambda expressions." Well, that explains it then.
Switch expressions bring to mind the "computed GOTO" and "arithmetic IF" in Fortran II. Anyone else here remember them?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.