.NET 5.0

C# v9.0 - Visual Studio 2019
Visual Studio 2019,16.8 or later.

Record types

You use the record keyword to define a reference type that provides built-in functionality for encapsulating data.

public record Person(string FirstName, string LastName); 

Positional syntax for property definition


Value equality

Nondestructive mutation

Built-in formatting for display


Init only setters

Top-level statements

Pattern matching enhancements

Performance and interop

Fit and finish features

Support for code generators

© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext