System.Drawing.Dimension.Equals C# (CSharp) Method

Equals() public method

Checks whether two dimension objects have equal values.
public Equals ( Object obj ) : bool
obj Object
return bool
        public override bool Equals(Object obj) {
            if (obj is Dimension) {
                Dimension d = (Dimension)obj;
                return (width == d.width) && (height == d.height);
            }
            return false;
        }