It was never immutable? You can have collections on there that are perfectly mutable as well as being able to set values?
You CAN use the with keyword, but that's a choice.
I've seen people use records for value based equality and to use for things like dictionary keys. Immutability in c# just doesn't exist, any attempt to achieve it is flawed from the start
I've seen people use records for value based equality and to use for things like dictionary keys. Immutability in c# just doesn't exist, any attempt to achieve it is flawed from the start