Tag archives for C#7.0
Switch Statement Enhancements in C# 7.0
Now from C# Switch statement will be having more power in matching the cases. Earlier, Switch statement can be used only for primitive and string types. But now we can…
Understanding Pattern Matching in C# 7.0
As we are aware of is-Expression where we can use is keyword to verify the given type. In C# , this has been extended to constant, type as well as var patterns. Let's dig into…
Out Variable Enhancements in C# 7.0
In C# , there were a couple of improvements in using out variable. To understand these enhancements we need to know how it was implemented in earlier versions , till C# Following is the…
Expression Bodies in C# 7.0
A new feature was introduced from C# is Expression Bodies. This feature makes your code more readable and can reduce the number of lines of code drastically. There are 3…
Throwing Exceptions in Expressions: C# 7.0
In C# , they introduced a new feature or we can say more flexible to throw the exceptions in Lambda expressions. Before seeing this, yet we know what we will…
Numeric Literals and Binary Literals in C# 7.0
Numeric Literals When working with literals of a numeric type having large and complex number will be hard to read. For example, if we are assigning a large integer to…
Working with New Out Variables & Discard Feature in C# 7.0
Out parameters are the most common feature we use in our regular development in C#. Out parameters are the parameters which will be sent by the calling method and expects…
Working with new enhanced Feature of ‘ref’ Keyword in C# 7.0
Here In this article, I will try to explore the new enhanced feature of 'ref' keyword. As a programmer, we are familiar with 'ref' keyword, which allows us to pass…
Working with new Value Tuple Data Structure in C# 7.0
Problem Statement: Want to return multiple results from the single method of different types. To achieve this functionality, there are three methodologies until Framework version * and following are those…
Working with Local Functions in C# 7.0
Today we will learn something cool feature called Local Functions in our newly upgraded version of C# , As we already know about Public and Private functions in our C# language.…