ReSharper 2026.1 Help

Code inspection: Redundant arithmetic overflow checking context

This inspection reports an explicit checked or unchecked context when it does not affect the code inside it. In that case, the extra overflow-checking context only adds noise and can be removed safely.

This usually happens when the wrapped expression contains no arithmetic or conversions whose behavior changes between checked and unchecked.

using System; class C { private int value = checked(Convert.ToInt32("123")); }
using System; class C { private int value = Convert.ToInt32("123"); }
13 April 2026