.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
|
|
internal class LinqQuery |
|
{ |
|
public static void Run(IEnumerable<int> numbers) |
|
{ |
|
foreach (int item in from n in numbers |
|
where n > 0 |
|
select n * n) |
|
{ |
|
Console.WriteLine(item); |
|
} |
|
} |
|
}
|
|
|