Skip to content

Commit

Permalink
Merge pull request #10906 from dotnet/main
Browse files Browse the repository at this point in the history
Merge main into live
  • Loading branch information
dotnet-policy-service[bot] authored Feb 4, 2025
2 parents 04efd1f + 2c0d1a4 commit 724e684
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xml/System.Net.Sockets/NetworkStream.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1562,8 +1562,7 @@ There is a failure reading from the network.</exception>
## Examples
The following code example uses <xref:System.Net.Sockets.NetworkStream.DataAvailable%2A> to determine if data is available to be read. If data is available, it reads from the <xref:System.Net.Sockets.NetworkStream>.
The following code example reads data from the <xref:System.Net.Sockets.NetworkStream> into a buffer. If data is available, it continues reading until the end of the stream is reached, appending the received data to a <xref:System.Text.StringBuilder>.
:::code language="csharp" source="~/snippets/csharp/System.Net.Sockets/NetworkStream/Overview/source.cs" id="Snippet4":::
]]></format>
Expand Down

0 comments on commit 724e684

Please sign in to comment.