Avoid throwing in ToString() if the process has already exited (#53979)
authorIlya <darpa@yandex.ru>
Thu, 29 Jul 2021 22:46:54 +0000 (03:46 +0500)
committerGitHub <noreply@github.com>
Thu, 29 Jul 2021 22:46:54 +0000 (16:46 -0600)
commita5842801e0c3fef66532da584528905c88b88f5b
treea794b95840b02fa10410befcba0c38186b67b106
parent9d4ce4048c08317e320d5b826df7f12d50b7d083
Avoid throwing in ToString() if the process has already exited (#53979)

* Avoid throwing in ToString() if the process has already exited

* Fix test
src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.cs
src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs