Improve S2589: Detect comparison between constant values #6745
Labels
Area: C#
C# rules related issues.
Area: CFG/SE
CFG and SE related issues.
Area: VB.NET
VB.NET rules related issues.
Milestone
Comparing a
constant
value with anotherconstant
value does not make much sense.The evaluation yields exclusively
true
orfalse
, meaning the "conditional" code is always/never executed.The text was updated successfully, but these errors were encountered: