Topic | Value |
---|---|
Id | IDISP009 |
Severity | Warning |
Enabled | True |
Category | IDisposableAnalyzers.Correctness |
Code | DisposeMethodAnalyzer |
The type has a Dispose method but does not implement IDisposable
.
ADD MOTIVATION HERE
ADD HOW TO FIX VIOLATIONS HERE
Configure the severity per project, for more info see MSDN.
#pragma warning disable IDISP009 // Add IDisposable interface
Code violating the rule here
#pragma warning restore IDISP009 // Add IDisposable interface
Or put this at the top of the file to disable all instances.
#pragma warning disable IDISP009 // Add IDisposable interface
[System.Diagnostics.CodeAnalysis.SuppressMessage("IDisposableAnalyzers.Correctness",
"IDISP009:Add IDisposable interface",
Justification = "Reason...")]