IsBlank() public static méthode

Check if the given string is blank.
public static IsBlank ( string str ) : bool
str string string
Résultat bool
        /// <summary>
        /// isAttributeNull.
        /// </summary>
        /// <param name="m">MethodInfo</param>
        /// <param name="obj">object</param>
        /// <returns>bool</returns>
        private static bool IsAttributeNull(MethodInfo m, object obj)
        {
            object value = null;

            try
            {
                value = m.Invoke(obj, null);
            }
            catch (Exception e)
            {
                if (e is TargetException || e is ArgumentException || e is TargetInvocationException || e is TargetParameterCountException ||
                    e is MethodAccessException || e is InvalidOperationException || e is NotSupportedException)
                {
                    Logger.Error(e, "An error occured while executing method: isAttributeNull ");
                }
            }
            bool result;

            if (typeof(string).IsAssignableFrom(m.ReturnType))
            {
                result = StringUtils.IsBlank((string)value);
            }
            else
            {
                result = (value == null);
            }
            return(result);
        }
        /// <summary>
        /// Check if characters of the given string are all '\u009F' ASCII value.
        /// </summary>
        /// <param name="str">string</param>
        /// <returns>true if all characters of given string are matching '\u009F' ASCII value. Otherwise false.</returns>
        public static bool IsStringHighValue(string str)
        {
            var result        = true;
            var stringAsArray = str.ToCharArray();

            if (StringUtils.IsBlank(str))
            {
                result = false;
            }
            else
            {
                if (stringAsArray.Any(currentchar => !IsCharHighValue(currentchar)))
                {
                    result = false;
                }
            }
            return(result);
        }