Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq.Expressions;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication7
- {
- class Program
- {
- delegate int d(int i);
- static void Main(string[] args)
- {
- d obj = x => x + 1;
- Console.WriteLine(obj(5));
- Expression <d> myEx = x => x + 1;
- int i = myEx.Compile()(77);
- Console.WriteLine(i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement