String interning and String.Empty
Here’s a curious program fragment: object obj = “Int32”; string str1 = “Int32”; string str2 = typeof(int).Name; Console.WriteLine(obj == str1); // true Console.WriteLine(str1 == str2); // true Console.WriteLine(obj == str2); // false !? Surely if A equals B, and B … Continue reading String interning and String.Empty
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed