CSharp7Features
CSharp7Features copied to clipboard
Tuples should not be described as immutable
Tuples are actually mutable.
As detailed here: https://docs.microsoft.com/en-us/dotnet/articles/csharp/tuples
All the ValueTuple types are mutable structs. Each member field is a public field. That makes them very lightweight. However, that means tuples should not be used where immutability is important.
Thank you! I will add his info as soon as possible!