This is an add-in for Fody
Creates immutable types
https://nuget.org/packages/Immutable.Fody/
PM> Install-Package Immutable.Fody
[Immutable]
public class Sample
{
public string MyField = "Foo";
}
public class Sample
{
public readonly string MyField = "Foo";
}
- For Types with the
[Immutable]
attribute. - All instance fields
Icon courtesy of The Noun Project