Dive into C#, Web, Cloud, Network and Security

Tag C# 9.0

How to use the C# init keyword

Init-only properties are one of the new features available in C# 9.0, officially released on November 2020 with .NET 5.0. This feature provides a way to initialize objects’ properties without being forced to put a set accessor on the properties.

© 2024 Siaka Baro

Up ↑