News

Pattern matching is an excellent feature that was introduced in C# 7. You can use pattern matching on any data type, even on custom data types, and use it to extract values from an expression.
C#8 adds Ranges and Recursive Patterns. Ranges define a sequence of data while the use of Recursive Patterns provides the ability to deconstruct objects that match a given pattern. This expands on ...
The command design pattern in action in C#. Finally, the following code snippet illustrates how you can perform a simple calculation using the SimpleCalculator class. static void Main ...
When logic branching requires anything more than a simple value-type comparison, C# developers have routinely reached for if-else statements to guide data processing. With the new case-block ...