Fix S1215 FN: GC.GetTotalMemory(forceFullCollection: true)
should not be called
#9687
Labels
Area: C#
C# rules related issues.
Area: VB.NET
VB.NET rules related issues.
Type: False Negative
Rule is NOT triggered when it should be.
Description
GC.GetTotalMemory(forceFullCollection: true)
callsGC.Collect()
internally.It might make sense to consider it equivalent to
GC.Collect()
and trigger a S1215.Repro steps
Expected behavior
Actual behavior
No warning.
Known workarounds
None.
Related information
The text was updated successfully, but these errors were encountered: