public static string GetCommandLine(this IStartUpInfoProvider startUpInfoProvider)
{
Argument.IsNotNull("startUpInfoProvider", startUpInfoProvider);
var commandLine = string.Join(" ", startUpInfoProvider.Arguments.Select(x => x.TrimStart().IndexOfAny(ReplaceableCharacters) > 0 ? string.Format("\"{0}\"", x) : x));
return commandLine;
}
#endregion