Monday, December 14, 2009

What is the best practice for calling explicit garbage collections?


You should call the finalizer after gc like,

//c#
GC.Collect();
GC.WaitForPendingFinalizers();


www.codecollege.NET

No comments:

Post a Comment