You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good if these two analyzers had the same special cases. Alternatively (and a better, more future-proofed solution) would be to have a configuration rule, ideally something matching the EditorConfig rule like CA2000's excluded_symbol_names and excluded_type_names_with_derived_types:
Use of
MemoryStream
triggersIDISP001
andIDISP004
however, whileMemoryStream
implementsIDisposable
it doesn't actually have disposable resources.CA2000
has a special case for Stream types because of this. Their special cases are:System.IO.Stream
System.IO.StringReader
System.IO.TextReader
System.IO.TextWriter
System.Resources.IResourceReader
It would be good if these two analyzers had the same special cases. Alternatively (and a better, more future-proofed solution) would be to have a configuration rule, ideally something matching the EditorConfig rule like
CA2000
'sexcluded_symbol_names
andexcluded_type_names_with_derived_types
:Example
IDISP001
:Example
IDISP004
:The text was updated successfully, but these errors were encountered: