System.Drawing.Rectangle.operator C# (CSharp) Method

operator() public static method

Tests whether two objects have equal location and size.

public static operator ( ) : bool
return bool
        public static bool operator ==(Rectangle left, Rectangle right) =>
            left.X == right.X && left.Y == right.Y && left.Width == right.Width && left.Height == right.Height;