public override bool Equals(object o) { if (o == null) return false; var other = o as Rectangle; if (other == null) return false; return this.Left == other.Left && this.Top == other.Top && this.Width == other.Width && this.Height == other.Height; }