This project is a .NET analyzer tool that utilizes Roslyn to check a class for immutability based on the types of it's properties and their accessor list.
Immutability is a key concept in functional programming and can help prevent bugs related to mutable state.
The purpose of this tool is to help developers ensure that their classes follow immutability principles,
which can lead to more stable and predictable code.
- Manually
Get the sources of analyzer projects
Add project reference to your
$ git clone https://github.com/protomorphine/ImmutableAnalyzer
.csproj
file:<ItemGroup> <ProjectReference Include="..\ImmutableAnalyzer\ImmutableAnalyzer.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" /> </ItemGroup>
- Nuget At this moment project NOT published on NuGet. Stay tuned.
Made with: