Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.25 KB

IDISP010.md

File metadata and controls

50 lines (36 loc) · 1.25 KB

IDISP010

Call base.Dispose(disposing)

Topic Value
Id IDISP010
Severity Warning
Enabled True
Category IDisposableAnalyzers.Correctness
Code DisposeMethodAnalyzer

Description

Call base.Dispose(disposing).

Motivation

ADD MOTIVATION HERE

How to fix violations

ADD HOW TO FIX VIOLATIONS HERE

Configure severity

Via ruleset file.

Configure the severity per project, for more info see MSDN.

Via #pragma directive.

#pragma warning disable IDISP010 // Call base.Dispose(disposing)
Code violating the rule here
#pragma warning restore IDISP010 // Call base.Dispose(disposing)

Or put this at the top of the file to disable all instances.

#pragma warning disable IDISP010 // Call base.Dispose(disposing)

Via attribute [SuppressMessage].

[System.Diagnostics.CodeAnalysis.SuppressMessage("IDisposableAnalyzers.Correctness", 
    "IDISP010:Call base.Dispose(disposing)", 
    Justification = "Reason...")]