Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Kekica9498yWhy on every object? You only want to do that to the objects who needed to be closed after stop you using them like sqlconnections, writers, reader etc.
-
gaben2698y@klemenkeko in my case it's too avoid caching large objects for long periods of time when I only need them cached for three or four lines
-
Kimmax111068ySet them null if you don't neec them anymore and the GC will happily free the memory for you
Never had to play with this kind of performance improvements in C# tho
Related Rants
In C# I want to use 'using' on any damn temporary object I please, but it only works with objects that implement idisposable..
undefined
wk30