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

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -