writing method using => operator c# 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"));