c# - Why should graphics needs to be disposed? -


why should graphics needs disposed? pen , solidbrush?

well simple answer implement 'idisposable' need disposed.

the longer answer consume unmanaged resources need released. calling dispose directly (or using 'using' statement) can release resources rather waiting gc you.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -