Finalize method is called in the Following Events.
1. When Generation[0] is Full on the managed heap.
2. When the program force the Garbage collector by GC.Collect.
3. When Windows reports low memory to the CLR, the CLR force the garbage collection.
4. When ClR is Unloading as ApplicationDomain.
5. CLR is shutting down
No comments:
Post a Comment