From 2c0d1a41a0e2ced9877930ea4709d33c7e5f3f90 Mon Sep 17 00:00:00 2001 From: Francisco Lafarga <37107302+flafarga@users.noreply.github.com> Date: Mon, 3 Feb 2025 18:57:35 +0100 Subject: [PATCH] fix NetworkStream reading example description (#10898) Remove incorrect DataAvailable reference and clarify buffer usage --- xml/System.Net.Sockets/NetworkStream.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xml/System.Net.Sockets/NetworkStream.xml b/xml/System.Net.Sockets/NetworkStream.xml index 4323270979b..0eeeedcf50c 100644 --- a/xml/System.Net.Sockets/NetworkStream.xml +++ b/xml/System.Net.Sockets/NetworkStream.xml @@ -1562,8 +1562,7 @@ There is a failure reading from the network. ## Examples - The following code example uses to determine if data is available to be read. If data is available, it reads from the . - + The following code example reads data from the into a buffer. If data is available, it continues reading until the end of the stream is reached, appending the received data to a . :::code language="csharp" source="~/snippets/csharp/System.Net.Sockets/NetworkStream/Overview/source.cs" id="Snippet4"::: ]]>