Deleting a rectangle class
<p>I'm creating a breakout game in c#, I am using boolean values to tell the program whether to draw the brick or not, i have used rectangle classes to put over the drawn rectangles to be able to tell if the ball has hit the bricks</p>

<p>This is the code i used so far:</p>

<pre><code>Rectangle brick4 = new Rectangle((490), (50), (50), (20));
bool hitBrick4 = brick4.Contains(x, y);
if (hitBrick4)
{
    brick4 = new Rectangle(0, 0, 0, 0);
    brick4draw = false;
    yChange = -yChange;
    bricksdestroyed = bricksdestroyed + 1;
   lblBricksDestroyed.Text = "Bricks Hit: " + bricksdestroyed;
}
</code></pre>

<p>I am trying to delete the rectangle class after the brick has been hit by setting it to zero's, but the rectangle is still there and can still be hit, triggering the hit brick code.</p>

<p>Any suggestions, sorry if i am not being very clear.</p>
