public static void Main(string[] args)
Action m2 = new Action(Method2);
Action<string> m3 = new Action<string>(Method3);
Method(x => "Larisa", m2, m3);
public static void Method(Func<string, string> userName, Action method2, Action<string> method3)
string name = userName("Enter your name: ");
if (string.IsNullOrEmpty(name))
public static string GetName(string greeting)
Console.WriteLine(greeting);
string name = Console.ReadLine();
public static void Method2()
Console.WriteLine("Your Name is empty! Enter your Name again:");
public static void Method3(string name)
Console.WriteLine("Thank you, {0}!", name);