All posts with Tag Code Analyzer

How to create a DiagnosticSuppressor

In the previous post, I showed several ways a developer can statically suppress a DiagnosticAnalyzer. However, what if you need to suppress diagnostics only when a specific code condition is met? In Roslyn, this is exactly what a DiagnosticSuppressor enables. In this post, we will explore how conditional suppression works and why it can be a powerful tool in building smarter C# analyzers.

Read the whole article

An error has occurred. This application may no longer respond until reloaded. Reload x