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:

  • Positional Arguments

Named arguments can be followed by positional arguments.

Easily reassign ref local variables in C# 7.3

  • Stackalloc Arrays

Use initializers on stackalloc arrays.

  • Dispatch

Implement method dispatch on properties other than the object type.

  • Out Variables

A method’s out parameters can be defined directly in the method in C# 7.

  • Local Functions

You can define a FUNCTION within the scope of another function. This gets local variables into the scope.

  • Deconstruction

This includes deconstruction of tuples into separate variables and creating metadata for the names of tuple elements.

  • Dummy Variables

Discards are dummy variables intentionally unused in application code. The maintainability of the code and make its intent more clear.

  • Digit Separators

These are beneficial in grouping digits in large numeric literals. These provide great readability and no significant downside.

  • Binary Literals

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.



Discussion

No Comment Found