Browse by Tags

Tagged Content List
  • Blog Post: 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 equals C, then A equals C; that...
Page 1 of 1 (1 items)