Skip to content
CShift0.32

Func

Struct · built-in type

struct Func

A 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);
Name Description
Invoke Calls the function (the same as f(...)) and returns its result.
void Invoke(...)

Calls the function (the same as f(...)) and returns its result.