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
Post a Comment