Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Development
Starlight [C#/.NET Core/Dapper]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Damien" data-source="post: 471640" data-attributes="member: 72299"><p>Does this provide any real benefit over using the older using statements?</p><p></p><p>I know they're less lines of code, but I prefer using them because then I know when the variable is getting disposed. If I had a further 50 lines of code for instance after the using statement the variables don't get disposed till those lines have executed. I could use both if there is any performance benefit to them, but I think I'll keep to using statements for everything so it's the same across the board.</p></blockquote><p></p>
[QUOTE="Damien, post: 471640, member: 72299"] Does this provide any real benefit over using the older using statements? I know they're less lines of code, but I prefer using them because then I know when the variable is getting disposed. If I had a further 50 lines of code for instance after the using statement the variables don't get disposed till those lines have executed. I could use both if there is any performance benefit to them, but I think I'll keep to using statements for everything so it's the same across the board. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Development
Starlight [C#/.NET Core/Dapper]
Top