public static void Say2() { var func = new GetHelloDelegate(str => $@"Hello {str}"); Console.WriteLine(func("CSharp")); Say3((str => $@"Hello {str}")); }
public static void Say3(GetHelloDelegate func) { Console.WriteLine(func("CSharp")); }