_poisson_
✅ Why string are immutable?
I marked this question as beginner because string are basic type and I think every C# user should understand why and how it works.
Notice me if I made a mistake: string are object like reference type, not value type. I went to check the .Net source code, but the string are defined as "sequential read-only collection of Char objects". and I just want to understand why there are read-only (but not read-only with a unsafe usage).
21 replies