G
Guest
Hi all
In following code, is it OK not to dispose local brush explicitly before
exiting the procedure?
private void MyDrawItem ( Graphics g, Color BackColor, Rectangle r )
{
g.FillRectangle(new SolidBrush(backColor), r);
}
Thanks
Alex
In following code, is it OK not to dispose local brush explicitly before
exiting the procedure?
private void MyDrawItem ( Graphics g, Color BackColor, Rectangle r )
{
g.FillRectangle(new SolidBrush(backColor), r);
}
Thanks
Alex