Skip to content

Commit e5da0b9

Browse files
committed
C#: Deprecate cs/captured-foreach-variable.
1 parent 046d0d4 commit e5da0b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

csharp/ql/src/Language Abuse/ForeachCapture.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
2+
* @deprecated This query is no longer relevant as the semantics of capturing a 'foreach' variable
3+
* and using it outside the loop has been stable since C# version 5.
24
* @name Capturing a foreach variable
35
* @description Code that captures a 'foreach' variable and uses it outside the loop behaves differently in C# version 4 and C# version 5
46
* @kind problem

0 commit comments

Comments
 (0)