Topic | Value |
---|---|
Id | IDISP012 |
Severity | Warning |
Enabled | True |
Category | IDisposableAnalyzers.Correctness |
Code | ReturnValueAnalyzer |
Property should not return created disposable.
ADD MOTIVATION HERE
ADD HOW TO FIX VIOLATIONS HERE
Configure the severity per project, for more info see MSDN.
#pragma warning disable IDISP012 // Property should not return created disposable
Code violating the rule here
#pragma warning restore IDISP012 // Property should not return created disposable
Or put this at the top of the file to disable all instances.
#pragma warning disable IDISP012 // Property should not return created disposable
[System.Diagnostics.CodeAnalysis.SuppressMessage("IDisposableAnalyzers.Correctness",
"IDISP012:Property should not return created disposable",
Justification = "Reason...")]