PVS-Studio analyzed open-source C# projects throughout 2025 and compiled the top 10 most interesting bugs discovered. The list includes errors like incorrect method calls in switch statements, format string mismatches causing exceptions, flawed Equals implementations, boxing issues with ReferenceEquals on value types, incorrect operator precedence with the null-coalescing operator, pattern matching mistakes, and LINQ deferred execution pitfalls with captured variables. Each error demonstrates common C# programming mistakes that static analysis can catch.

Sort: