mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
13 lines
256 B
C#
13 lines
256 B
C#
class RedundantSelect
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
List<int> lst = Enumerable.Range(1, 10).ToList();
|
|
|
|
foreach (int i in lst.Select(e => e).Where(e => e % 2 == 0))
|
|
{
|
|
Console.WriteLine(i);
|
|
}
|
|
}
|
|
}
|