Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply CA1835 - Prefer memory overloads for Stream.ReadAsync/WriteAsync #35941

Merged
merged 2 commits into from
May 12, 2020

Conversation

carlossanlop
Copy link
Member

The CA1835 Roslyn analyzer/fixer has been merged to dotnet/roslyn-analyzers and now the rule needs to be applied in dotnet/runtime.

Prefer Memory overloads for Stream.Read/WriteAsync #33790

Copy link
Member

@GrabYourPitchforks GrabYourPitchforks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@carlossanlop
Copy link
Member Author

The unit tests for XmlUtf8RawTextWriterAsync are failing. I'm investigating.

- Prefer the Stream.ReadAsync and Stream.WriteAsync memory overloads.
- Unit test fix suggested by buyaa-n to adjust the usage of these overloads.
@carlossanlop
Copy link
Member Author

@buyaa-n the unit tests passed with your suggested additions. Thanks for your help. I'll merge this now.

@carlossanlop carlossanlop merged commit 14094d2 into dotnet:master May 12, 2020
@carlossanlop carlossanlop deleted the RoslynStreamAsync branch May 12, 2020 18:36
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants