C#轮子

时间:2018-08-06 16:51:34   收藏:0   阅读:188
        /// <summary>
        /// 判断字符串是否为空,空字符串,空格
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public static bool IsNullOrEmptyOrWhiteSpace(this string input)
        {
            return String.IsNullOrEmpty(input) || input.All(char.IsWhiteSpace);
        }

 

原文:https://www.cnblogs.com/Jayesslee/p/9431122.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!