rspec/rules/S3971/csharp/rule.adoc
2021-04-28 16:49:39 +02:00

4 lines
375 B
Plaintext

``++GC.SuppressFinalize++`` requests that the system not call the finalizer for the specified object. This should only be done when implementing ``++Dispose++`` as part of the https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose[Dispose Pattern].
This rule raises an issue when ``++GC.SuppressFinalize++`` is called outside that pattern.