.NET standard

C# 8.0 – Platform dependencies

Many of the C# 8.0 language features have platform dependencies. It’s been almost 20 years since Microsoft released the first version of the C# language. From its inception — when some unjustly deemed it a mere Java copycat — until now with the release of C# 8, the language has […]

C# 8.0 – the SWITCH expression

C# 8 introduces switch expressions, which enable the following: terser syntax, returns a value since it is an expression, and fully integrated with pattern matching. The switch keyword is “infix”, meaning the keyword sits between the tested value (here, that’s o) and the list of cases, much like expression lambdas. […]