Share via


Managed Minimum Rules rule set for managed code

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The Managed Minimum rules focus on the most critical problems in your code, including potential security holes, application crashes, and other important logic and design errors. Include this rule set in any custom rule set you create for your projects.

Rule Description
CA1001 Types that own disposable fields should be disposable
CA1821 Remove empty finalizers
CA2213 Disposable fields should be disposed
CA2231 Overload operator equals on overriding ValueType.Equals