Why is ReSharper/Rider suggesting this?

ReSharper and Rider help you learn existing and new features of .NET!

Tip Screenshot

The ReSharper language engine comes with over 1500+ code analysis rules, 1900+ code-issue fixes, 58 solution-wide refactorings, and 470+ context actions. And thanks to context-aware inspections, that amount doesn't have to be overwhelming!

While fixing issues in your code is important, it's even more important to understand why you're making those changes. For most inspections, you can use the "Why is ReSharper suggesting this" (or "Why is Rider suggesting this") menu to learn about a particular inspection and quick fix.

See Also


Related Resources

Solution-Wide Analysis
Find and resolve code issues in your projects.
Fixing Warnings and Errors
Automatically resolve inspections using quick fixes.
What is Solution-Wide Analysis?
An introduction to Solution-Wide Analysis in ReSharper and Rider.