/// <summary> /// Builds the string merged values. If a value contains spaces, it is inclosed into double quotes. /// </summary> /// <param name="values">The values.</param> /// <returns></returns> public static string BuildQuotedString(List <string> values) { if (ListUtility.IsNullOrEmpty(values)) { return(string.Empty); } string[] quotedValues = values.Select(QuoteIfNecessary).ToArray(); string result = string.Join(" ", quotedValues); return(result); }
public static bool IsEmpty(string path) { DirectoryInfo folder = new DirectoryInfo(path); return(ListUtility.IsNullOrEmpty(folder.GetFiles()) && ListUtility.IsNullOrEmpty(folder.GetDirectories())); }