From e4509feced41580ad174cf1ecafb4513a5fe48bd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 25 May 2026 17:22:26 +0000 Subject: [PATCH 1/3] Initial plan From c2b3b8d44a535face4d7e0456e64a73be36844ae Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 25 May 2026 17:24:29 +0000 Subject: [PATCH 2/3] Clarify that DataReceivedEventArgs.Data is null at end of stream Agent-Logs-Url: https://github.com/dotnet/dotnet-api-docs/sessions/365f3afd-ac6d-4f5c-8b59-e3fbccdbb8a4 Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com> --- xml/System.Diagnostics/DataReceivedEventArgs.xml | 2 +- xml/System.Diagnostics/Process.xml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/xml/System.Diagnostics/DataReceivedEventArgs.xml b/xml/System.Diagnostics/DataReceivedEventArgs.xml index d7c7426d138..d2eb62f2a51 100644 --- a/xml/System.Diagnostics/DataReceivedEventArgs.xml +++ b/xml/System.Diagnostics/DataReceivedEventArgs.xml @@ -114,7 +114,7 @@ Gets the line of characters that was written to a redirected output stream. - The line that was written by an associated to its redirected or stream. + The line that was written by an associated to its redirected or stream. This value is if the end of the stream has been reached. event indicates that the associated has written a line that's terminated with a newline (carriage return (CR), line feed (LF), or CR+LF) to its redirected stream. + The event is also raised when the end of the redirected stream is reached. In that case, the property of the event handler's is `null`. + The event only occurs during asynchronous read operations on . To start asynchronous read operations, you must redirect the stream of a , add your event handler to the event, and call . Thereafter, the event signals each time the process writes a line to the redirected stream, until the process exits or calls . > [!NOTE] @@ -3134,6 +3136,8 @@ If no main module is found, it could be because the process hasn't finished load ## Remarks The event indicates that the associated has written a line that's terminated with a newline (carriage return (CR), line feed (LF), or CR+LF) to its redirected stream. + The event is also raised when the end of the redirected stream is reached. In that case, the property of the event handler's is `null`. + The event is enabled during asynchronous read operations on . To start asynchronous read operations, you must redirect the stream of a , add your event handler to the event, and call . Thereafter, the event signals each time the process writes a line to the redirected stream, until the process exits or calls . > [!NOTE] From d4548dd434061647942c0bdf918b5aefd3cd8b79 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 27 May 2026 09:37:22 +0200 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --- xml/System.Diagnostics/DataReceivedEventArgs.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Diagnostics/DataReceivedEventArgs.xml b/xml/System.Diagnostics/DataReceivedEventArgs.xml index d2eb62f2a51..6fc693c9575 100644 --- a/xml/System.Diagnostics/DataReceivedEventArgs.xml +++ b/xml/System.Diagnostics/DataReceivedEventArgs.xml @@ -114,7 +114,7 @@ Gets the line of characters that was written to a redirected output stream. - The line that was written by an associated to its redirected or stream. This value is if the end of the stream has been reached. + The line that was written by an associated to its redirected or stream, or if the end of the stream has been reached.