Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.05 KB

README.md

File metadata and controls

13 lines (8 loc) · 1.05 KB

Primary Constructor Analyzer

Build status NuGet

C# 12 introduced primary constructors but the only drawback at the moment is that we can't declare parameters as readonly.

I'm quite sure this will come later but here is a simple analyzer to detect mutations to those parameters.

Just reference the nuget in your favorite compatible IDE, and it should work.

Visual Studio

Visual Studio Code