2009年2月3日
摘要: string.Empty不分配存储空间 ""分配一个长度为空的存储空间 所以一般用string.Empty为了以后跨平台,还是用string.empty在 C# 中,大多数情况下 "" 和 string.Empty 可以互换使用。比如:string s = "";string s2 = string.Empty;if (s == string.Empty) {// }if语句成立 判定为空字符串的... 阅读全文
posted @ 2009-02-03 16:09 seagreen7 阅读(6210) 评论(5) 推荐(2) 编辑