Redirect output of child process using C#

var process = Process.Start(
    new ProcessStartInfo("ping", "google.com") {
        UseShellExecute = false,
        RedirectStandardOutput = true,
        RedirectStandardError = true,
        RedirectStandardInput = true });
Console.WriteLine(process.StandardOutput.ReadToEnd());

Notes:

References: