public static string ConcatArgs(IEnumerable <string> args) { var arg = ""; if (args != null) { foreach (var r in args) { if (arg.Length > 0) { arg += " "; } arg += Utilities.Quote(r); } } return(arg); }
public static string ConcatArgs(string[] args, bool quote = true) { var arg = ""; if (args != null) { foreach (var r in args) { if (arg.Length > 0) { arg += " "; } arg += quote ? Utilities.Quote(r) : r; } } return(arg); }