c# arrow function why to use code example
Example: c# arrow
// Make a new lambda function
Func<string, string> greet = (name) => $"Hello, {name}!";
// Call it
Console.WriteLine(greet("John"));
// Make a new lambda function
Func<string, string> greet = (name) => $"Hello, {name}!";
// Call it
Console.WriteLine(greet("John"));