2004年3月23日

Applied MS .Net Framework Programming 节选

摘要: 下面是Jeffrey Rechter 在 中对 String Interning 和 String Pooling的描叙String InterningAs I said in the preceding section, comparing strings is a common operation for manyapplications—it’s also a task that can ... 阅读全文

posted @ 2004-03-23 16:27 Meyer 阅读(1117) 评论(0) 推荐(0)

String的相等判断

摘要: 刚才在妖精那看到关于String的相等比较,提出一些关于字符串相等比较的问题。第一题就不说了,那是string的运算符重载和对Equals方法覆写(override)的的原因。我们来谈谈第二题. static void Main() { object s = "Test"; object t = "Test"; Console.WriteLine(s == t); } 这个为什么相... 阅读全文

posted @ 2004-03-23 12:58 Meyer 阅读(1853) 评论(2) 推荐(0)

导航