Currently, Breach, SiteBreach and Paste are not meant to be mutable but they are because of pre-C#8 language constructs. They're mutable because they need to be serializable by everything before .NET 50. I'd like to suggest making them immutable by specifying 'init' access modifiers on their property setters for . NET 5 so we solve this issue.. This might require introducing a .NET 5.0 target.
Goal: Investigate the impact, solution approaches, etc. Document them in this issue so we can make a decision on this topic.
Currently,
Breach
,SiteBreach
andPaste
are not meant to be mutable but they are because of pre-C#8 language constructs. They're mutable because they need to be serializable by everything before .NET 50. I'd like to suggest making them immutable by specifying 'init' access modifiers on their property setters for . NET 5 so we solve this issue.. This might require introducing a .NET 5.0 target.Goal: Investigate the impact, solution approaches, etc. Document them in this issue so we can make a decision on this topic.