Official Blog of Azilen

The Techie Explorations

Write Cleaner Code Using C# 10

Global Usings

System.Text.Json to use JsonSerialize function

Add global keyword

.csproj file
imports

File Scoped Namespaces

File Scoped Namespaces
add multiple namespaces in the same file

Constant Interpolated Strings

Constant Interpolated Strings
 there is no such restriction.

12

Lambda Improvements

Lambda Improvements

Extended Property Pattern

Record Structs

Record Types Can Seal ToString() Method

Structure Type Improvements

Parameterless Constructor

With Expression

Declaration and Initialization in Same Statement

In C# 9

In C# 10

Conclusion

Leave a reply