This is a straightforward diagnosic-only analyzer. Classes which include a user-defined finalizer should extend CriticalFinalizerObject (typically SafeHandle or CriticalHandle, or a class derived from one of those).
Since there are known exceptions to this guideline (e.g. Task), it should be reported only as a warning by default.
This is a straightforward diagnosic-only analyzer. Classes which include a user-defined finalizer should extend
CriticalFinalizerObject(typicallySafeHandleorCriticalHandle, or a class derived from one of those).Since there are known exceptions to this guideline (e.g.
Task), it should be reported only as a warning by default.