-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Override Stream.ReadByte/WriteByte #33788
Comments
Estimates:
|
I don't think there's anything meaningful a fixer could do here |
This analyzer is related to #33789 . Let's consider adding this case to that one, instead of creating a new analyzer. And just like in #33789, we should scope this to only types that are directly derived from |
Knowing to override ReadByte and WriteByte is something that would show up in a performance analysis, and a performance-improvements focus would likely have already highlighted it. Without usage on a specific Stream-derived type saying that ReadByte/WriteByte were even called, this is too low value considering the already high cost of implementing a Stream "properly", and so doesn't seem justified. The group got sidetracked by theorizing about a |
The rule should flag types derived from
Stream
that don't overrideReadByte
orWriteByte
.Category: Performance
The text was updated successfully, but these errors were encountered: