C#: Deprecate cs/captured-foreach-variable.

This commit is contained in:
Michael Nebel
2025-09-10 14:03:42 +02:00
parent 046d0d4938
commit e5da0b90ce

View File

@@ -1,4 +1,6 @@
/**
* @deprecated This query is no longer relevant as the semantics of capturing a 'foreach' variable
* and using it outside the loop has been stable since C# version 5.
* @name Capturing a foreach variable
* @description Code that captures a 'foreach' variable and uses it outside the loop behaves differently in C# version 4 and C# version 5
* @kind problem