Generate primary constructor from readonly fields
-
Updated
Jan 26, 2024 - C#
Generate primary constructor from readonly fields
Using a Field or Property attribute on parameters. Automaticaly generate private readonly fields or private properties. Forbid the use of primary constructor's parameters.
A roslyn analyzer containing a collection of rules for C# projects
Kotlin Tutorial
Sample project for 'Double storage in a class with a primary constructor' blogpost
Sample project for 'Primary constructors and inheritance pitfalls' blogpost
Basic multi-tenant WebAPI using clean Architecture, CQRS, UoW, EFCore, MediatR and .NET 8
Add a description, image, and links to the primary-constructor topic page so that developers can more easily learn about it.
To associate your repository with the primary-constructor topic, visit your repo's landing page and select "manage topics."