string str = string.Empty; if (String.IsNullOrEmpty(str)){ //tudo} 转载于:https://www.cnblogs.com/houzuofeng/archive/2011/04/15/2016697.html