...

/

Using an Analyzer to Write Better Code

Using an Analyzer to Write Better Code

Learn about using .NET analyzers, particularly StyleCop, to find potential issues and suggest fixes for writing better C# code.

We'll cover the following...

Let’s see how we can get help to write better code.

Using analyzers

.NET analyzers find potential issues and suggest fixes for them. StyleCop is a commonly used analyzer for helping us write better C# code. Let’s see it in action:

Step 1: Use your preferred code editor to add a Console App or console project named CodeAnalyzing to the Chapter06 solution or workspace.

    ...