Skip to content

Commit a670330

Browse files
committed
C#: Example of naturally typed lambda.
1 parent 182c62f commit a670330

File tree

1 file changed

+11
-0
lines changed
  • csharp/ql/test/library-tests/csharp10

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
3+
public class Lambda
4+
{
5+
public void M1()
6+
{
7+
Func<int, string> f1 = (int x) => x.ToString();
8+
var f2 = (int x) => x.ToString();
9+
}
10+
}
11+

0 commit comments

Comments
 (0)