Skip to main content
Best practices
0 votes
16 replies
170 views

Consider the functional switch in C#, such as a trivial example (absolute value): double x = ... x = x switch { < 0 => -x, _ => x }; However, if I have a function instead: x = ...
Mario Vernari's user avatar