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

Equals() public method

Tests to see whether the specified object is a with the same dimensions as this .

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            if (!(obj is SizeF))
                return false;

            SizeF comp = (SizeF)obj;

            return (comp.Width == Width) && (comp.Height == Height);
        }