Func
Struct · built-in type
struct FuncA function value with a result: the last type argument is the result, Func<int, int, int> takes two ints
and returns an int. Up to 8 parameters.
Func<int, int> square = x => x * x;int nine = square(3);Methods
Section titled “Methods”| Name | Description |
|---|---|
Invoke |
Calls the function (the same as f(...)) and returns its result. |
Invoke
Section titled “Invoke”void Invoke(...)Calls the function (the same as f(...)) and returns its result.