/// <summary> /// The is null or white space. /// </summary> /// <returns> /// The <see cref="bool" />. /// </returns> public bool IsNullOrWhiteSpace() { if (_string == null) { return(TStringHelper.IsNullOrWhiteSpace(_stringBuilder)); } return(TStringHelper.IsNullOrWhiteSpace(_string)); }
/// <summary> /// The is null or empty. /// </summary> /// <returns> /// The <see cref="bool" />. /// </returns> public bool IsNullOrEmpty() { if (_string == null) { return(TStringHelper.IsNullOrEmpty(_stringBuilder)); } return(TStringHelper.IsNullOrEmpty(_string)); }
/// <summary> /// The list to string. /// </summary> /// <param name="list"> /// The list. /// </param> /// <param name="delimiter"> /// The delimiter. /// </param> /// <typeparam name="T"> /// </typeparam> /// <returns> /// The <see cref="string"/>. /// </returns> public static string ListToString <T>(this IEnumerable <T> list, string delimiter) { if (list == null) { return(null); } StringBuilder builder = null; foreach (var local in list) { builder = TStringHelper.CombineStrings(builder, (local != null) ? local.ToString() : null, delimiter); } return(TStringHelper.StringToEmpty(builder)); }