You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public C(ConcurrentDictionary<object, IDisposable> dictionary)
564
+
{
565
+
_dictionary = dictionary;
566
+
}
567
+
568
+
public void Remove(object key)
569
+
{
570
+
if (_dictionary.TryRemove(key, out IDisposable value))
571
+
{
572
+
// value is not disposed.
573
+
}
574
+
}
575
+
}",
576
+
// Test0.cs(15,40): warning CA2000: Call System.IDisposable.Dispose on object created by 'out IDisposable value' before all references to it are out of scope.
Copy file name to clipboardExpand all lines: src/Utilities/FlowAnalysis/FlowAnalysis/Analysis/DisposeAnalysis/DisposeAnalysis.DisposeDataFlowOperationVisitor.cs
Copy file name to clipboardExpand all lines: src/Utilities/FlowAnalysis/FlowAnalysis/Analysis/PointsToAnalysis/PointsToAnalysis.PointsToDataFlowOperationVisitor.cs
0 commit comments