2016年8月1日
摘要: .net中,其字符串特有的驻留机制,保证了在同一进程中,相同字符序列的字符串,只有一个实例,这样能避免相同内容的字符串重复实例化,以减少性能开销。 先来回顾一下c#中的代码: public static void testString() { String s = "Abc"; String s1 阅读全文
posted @ 2016-08-01 16:20 BlueWhale84 阅读(481) 评论(0) 推荐(0) 编辑