Does Brushes.Black return a new Brush object (that must be disposed)?

Does Brushes.Black return a new Brush object (that must be disposed)?

Post by Einar H » Sat, 04 Dec 2004 19:26:03


Well, subject says it all really...

Thanks,
Einar

--
"If it was so, it might be; and if it were so, it would be; but as it isn't,
it ain't. That's logic" -- Lewis Carroll
 
 
 

Does Brushes.Black return a new Brush object (that must be disposed)?

Post by Morten Wen » Sat, 04 Dec 2004 19:52:06

Hi Einar,

No, objects from classes like Brushes and Pens etc are already built and
should not be disposed.

--
Happy Coding!
Morten Wennevik [C# MVP]