Quantcast
Channel: Answers for "How important is it to wrap temp variables/objects in a "using" block?"
Viewing all articles
Browse latest Browse all 8

Answer by lil_billy

$
0
0
well im aware of the benefit of using using lol however i didnt know that C# handled garbage collection that way Knowing that bit now I would say yes you could get away with it however there would be cases where it would be lethal not to cases where you suddenly read in a whole lot of information and run them through a slew of temporary variable declarations (like reading in a LOT of save data) or something along those lines its just one of those added optimizations you can do like StringBuilder though tbh a person can spend months optimizing the hell out of a script, i believe there is such a thing as "good enough"

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>