dotnet / dotnet/dotnet-api-docs

Code example should not use APM

Open
#925 1 comment 0 reactions 0 assignees View on GitHub
area-System.IO dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

The code example for this page uses the APM (as can be seen from it calling `EndRead`). Since APM is not recommended anymore, I think examples should not use it (unless they have to).

Fixing this would involve changing this page, the larger example in the `FileStream` constructor and also other pages that use this example, if any.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: e7cc1aa5-01fa-daaf-29e9-629c764c06c0
* Version Independent ID: 89fad939-286b-4cd6-dfb3-5f3cc1c893de
* Content: [FileStream.Name Property (System.IO)](https://docs.microsoft.com/en-us/dotnet/api/system.io.filestream.name?redirectedfrom=MSDN&view=netframework-4.7.2#System_IO_FileStream_Name)
* Content Source: [xml/System.IO/FileStream.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.IO/FileStream.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.