Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I Dispose System.Windows.Media.Pen?

Should I Dispose System.Windows.Media.Pen ?

It was usual to call the Dispose method of a System.Drawing.Pen.

like image 566
serhio Avatar asked Dec 21 '22 21:12

serhio


1 Answers

If it's disposable, dispose it.

In this case, System.Windows.Media.Pen does not appear to be disposable.

like image 123
Daniel Renshaw Avatar answered Dec 26 '22 21:12

Daniel Renshaw