mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
24 lines
375 B
C#
24 lines
375 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
class Foreach
|
|
{
|
|
void M1(string[] args)
|
|
{
|
|
foreach (var arg in args)
|
|
;
|
|
}
|
|
|
|
void M2(string[] args)
|
|
{
|
|
foreach (var _ in args)
|
|
;
|
|
}
|
|
|
|
void M3(IEnumerable<string> e)
|
|
{
|
|
foreach (var x in e?.ToArray() ?? Enumerable.Empty<string>())
|
|
;
|
|
}
|
|
}
|