A typo
V3001 There are identical sub-expressions ‘Left == 0’ to the left and to the right of the ‘&&’ operator. Thickness.cs 29
public double Left { get; set; } public double Top { get; set; } public double Right { get; set; } public double Bottom { get; set; } internal bool IsDefault { get { return Left == 0 && Top == 0 && Right == 0 && Left == 0; } }
The subexpression Left == 0 is used twice in the expression. Apparently, that’s a mistake. The code Bottom == 0 should be used instead of the last subexpression, as it is the only property (judging by the logic and the property set) that is not checked in this expression.
Please click here to see more bugs from this project.