string s1 = "abc";
string s2 = "ab";
string s3 = s2 + "c";
Console.WriteLine(string.IsInterned(s3)); // abc
Console.WriteLine(String.ReferenceEquals(s1, s3)); // False
なぜs3がインターンしたのか理解できませんが、ReferenceEquals
Falseでした。
彼らはインターン プールに 2 つのコピーを持っていますか?
前もって感謝します。