rspec/rules/S3971/csharp/rule.adoc

34 lines
744 B
Plaintext
Raw Normal View History

== Why is this an issue?
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)
=== Message
Remove this call to "GC.SuppressFinalize".
=== Highlighting
GC.SuppressFinalize call
'''
== Comments And Links
(visible only on this page)
=== relates to: S3234
=== relates to: S3881
endif::env-github,rspecator-view[]