Skip to content

Override Stream.ReadAsync/WriteAsync #33789

@terrajobst

Description

@terrajobst

The rule should flag types derived from Stream that override BeginRead/EndRead or BeginWrite/EndWrite but that don't override ReadAsync or WriteAsync. And it should flag types derived from Stream that override the array-based ReadAsync or WriteAsync but that don't override the Memory-based overloads of the same name. (Potentially the same should be done for the Span-based overloads, but as the array-based Read and Write methods are abstract and thus must be overridden, it's harder to say whether those should be or not.)

Category: Performance

Metadata

Metadata

Assignees

Labels

api-approvedAPI was approved in API review, it can be implementedarea-System.IOcode-analyzerMarks an issue that suggests a Roslyn analyzercode-fixerMarks an issue that suggests a Roslyn code fixerhelp wanted[up-for-grabs] Good issue for external contributors

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions