C# Strings Aren’t Really Immutable (Here’s Proof)
C# strings are immutable… until they aren’t. In this video, we dig into .NET string interning—why identical string literals can point to the same instance in memory—and how to prove it with Object.ReferenceEquals(). Then we look at the oddball API String.IsInterned(), why it returns a string (or null) instead of a bool, and how String.Intern() forces a runtime-created string into the intern pool. Finally, for educational purposes only, we do…









