BelhardTraining.FiguresDemo.Rectangle.Equals C# (CSharp) Метод

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool
        public override bool Equals(object obj)
        {
            Rectangle other = obj as Rectangle;
            if (other == null) return false;

            return (Math.Abs(Width - other.Width) < 0.000001) && (Math.Abs(Height - other.Height) < 0.000001);
        }