private static void ActionTest() { Action <string, string, int> sourceAction = (x, y, z) => Console.WriteLine($"STR1: {x} STR2: {y} INT: {z}"); Action <object[]> myDele = ActionConvert.Convert(sourceAction); myDele(new object[] { "Hey", "Yo", 123 }); }
private void Button_Click_Convert(object sender, RoutedEventArgs e) { ActionConvert.Invoke(sender, e); }