.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.
 
 
 

18 lines
324 B

using System;
namespace ICSharpCode.Decompiler.Tests.TestCases.PdbGen;
public class LambdaCapturing
{
public static void Main(string[] args)
{
int num = 4;
int captured = Environment.TickCount + num;
Test((int a, int b) => a + b + captured);
}
private static void Test(Func<int, int, int> p)
{
p(1, 2);
}
}