TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
C# Coding Standard

Rule:  5@114Checked automatically with code checker

Synopsis:Do not access any reference type members in the finalizer
Severity Level:2
Category:Object lifecycle


When the finalizer is called by the garbage collector, it is very possible that some or all of the objects referenced by class members are already garbage collected, so dereferencing those objects may cause exceptions to be thrown.

Only value type local variables can be accessed (since they live on the stack).