摘要:
三种常用的字符串判空串方法: Length法:bool isEmpty = (str.Length == 0); Empty法:bool isEmpty = (str == String.Empty); General法:bool isEmpty = (str == ""); 实践证明用Length方法判空是最快的(在32位系统上,System.Int32运算最快了),注意只有... 阅读全文
posted @ 2004-12-03 10:14
把我的欢乐带给你
阅读(4777)
评论(2)
推荐(0)

浙公网安备 33010602011771号