Finalize method in asp .net

It is containing all topics related to Visual Basic, .NET Framework, Web Resource, GDI etc.
Ladva Nidhi
Posts: 295
Joined: Sat Sep 20, 2014 5:26 pm
Contact:

Finalize method in asp .net

Postby Ladva Nidhi » Thu Oct 16, 2014 5:21 pm

Why is it preferred to not use finalize for clean up?


Guest

Re: Finalize method in asp .net

Postby Guest » Mon Aug 03, 2015 9:03 am

The preferred way is to implement IDisposable along with the dispose pattern. Finalizers are time-limited and the GC will terminate a finalizer if it blocks for too long - this is the primary reason to avoid it where possible. :) :)


Return to “Visual Basic .NET and ASP.NET”

Who is online

Users browsing this forum: No registered users and 2 guests