public static void Main(String[] args) { var t = new Test(); t.DoSome = a => Console.WriteLine(a); t.DoSome("asdfasdf"); Console.ReadKey(); } //main