InterviewSolution
| 1. |
Features of C# 7 |
|
Answer» C#7.3 is the current version of C#. It is a multi-paradigm, generic and OBJECT-oriented programming languages. The following are the features:
Named arguments can be followed by positional arguments. Easily reassign ref local variables in C# 7.3
Use initializers on stackalloc arrays.
Implement method dispatch on properties other than the object type.
A method’s out parameters can be defined directly in the method in C# 7.
You can define a FUNCTION within the scope of another function. This gets local variables into the scope.
This includes deconstruction of tuples into separate variables and creating metadata for the names of tuple elements.
Discards are dummy variables intentionally unused in application code. The maintainability of the code and make its intent more clear.
These are beneficial in grouping digits in large numeric literals. These provide great readability and no significant downside.
These are literals in binary form. They are identical to hexadecimal literals except they use digits 0 and 1 with base 2. Binary literals are great for educational PURPOSES and are low cost implementations. |
|