Skip to content

sailro/PrimaryConstructorAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ae9d1b9 · Nov 14, 2024

History

27 Commits
Nov 14, 2024
Nov 24, 2023
Nov 14, 2024
Nov 24, 2023
Nov 14, 2024
Nov 25, 2023
Nov 24, 2023
Dec 6, 2023
Nov 14, 2024
Nov 24, 2023
Nov 24, 2023
Nov 24, 2023

Repository files navigation

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

About

Detect mutations for primary constructor parameters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published