方法1:str=="" 方法2:str==string.Empty 方法3:str.Length==0 方法4:string.IsNullOrEmpty(str) 方法3效率最高,原因数字的比较速度最快!!! Reflector查看源码结果: 相关文章: