Deconstruction In C# 7.0

Deconstruction is a process of splitting a variable value into parts and storing them into new variables. This could be useful when a variable stores multiple values such as a…

Local Functions In C# 7.0

C# 7.0 adds a new feature called local functions, which allows local methods to be defined and called within a method. This wasn’t possible in the previous versions. The following…

Out Variables In C# 7.0

Prior to C# 7.0, the out keyword was used to pass a method argument's reference. Before a variable is passed as an out argument, it must be declared. However, unlike…

Pattern Matching In C# 7.0

Patterns are introduced in 7.0 to bring power to some existing language operators and statements. Currently, the pattern matching is partially implemented in C# 7.0 and more work is expected…

Ref Returns In C# 7.0

The ref keyword in C# allows code to pass a value type variable by reference as a parameter of a method. To use a ref parameter, both the method definition…