c sharp arrow function 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"));