Auto property initializer is one of the new feature in C# 6 which Microsoft introduced, below are some of the examples of it.

As we know, it was not possible to initialize properly just at the time of declaration, we would need to initialize either in constructor or while initialize an object.

Even we can see read only property also can be directly initialize at the time of declaring it.

--

--

Mohammad Shoeb
C# Programming

Solution Architect (Full stack dev — React, Angular, .NET)