I have a confusion regarding these two seemingly contradictory statements on msdn..
1) When a class contains a destructor, an entry is created in the Finalize queue. When the destructor is called, the garbage collector is invoked to process the queue.
2) The programmer has no control over when the destructor is called because this is determined by the garbage collector. The garbage collector checks for objects that are no longer being used by the application. If it considers an object eligible for destruction, it calls the destructor (if any) and reclaims the memory used to store the object.
In the first statement i understand that Destructor calls ---> Garbage collector while as from the second statement i understand that Garbage collector calls ---> Destructor
??
Update: this link