예제 #1
0
        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);
        }
예제 #2
0
        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);
        }