Func and Action
Built-in delegate types: Func returns a value, Action doesn't.
Func<…,TResult>, Action<…>, and Predicate
Examples
Func<int, int, int> add = (a, b) => a + b;returns a value;Action<string> log = Console.WriteLine;doesn't.
See also
Built-in delegate types: Func returns a value, Action doesn't.
Func<…,TResult>, Action<…>, and Predicate
Examples
Func<int, int, int> add = (a, b) => a + b; returns a value; Action<string> log = Console.WriteLine; doesn't.
See also