rspec/rules/S3971/csharp/rule.adoc

23 lines
659 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
``++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.
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
include::highlighting.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]