示例#1
0
        public static void Say2()
        {
            var func = new GetHelloDelegate(str => $@"Hello {str}");

            Console.WriteLine(func("CSharp"));
            Say3((str => $@"Hello {str}"));
        }
示例#2
0
 public static void Say3(GetHelloDelegate func)
 {
     Console.WriteLine(func("CSharp"));
 }