RectangleF.Equals C# (CSharp) Method

Equals() public static method

public static Equals ( RectangleF, &r1, RectangleF, &r2 ) : bool
r1 RectangleF,
r2 RectangleF,
return bool
    public static bool Equals(ref RectangleF r1, ref RectangleF r2)
    {
        return (r2._x == r1._x) && (r2._y == r1._y) && (r2._width == r1._width) && (r2._height == r1._height);
    }

Usage Example

Example #1
0
        public void RectangleF_EqualsObject()
        {
            var rectangle1 = new RectangleF(123.45f, 456.78f, 789.99f, 999.99f);
            var rectangle2 = new RectangleF(123.45f, 456.78f, 789.99f, 999.99f);

            TheResultingValue(rectangle1.Equals((Object)rectangle2)).ShouldBe(true);
            TheResultingValue(rectangle1.Equals("This is a test")).ShouldBe(false);
        }
All Usage Examples Of RectangleF::Equals