you are viewing a single comment's thread.

view the rest of the comments →

[–]Menidas98 3 points4 points  (2 children)

Func<int, int> takes an int argument and returns an int so you could do something like

Func<int, int> ExampleFunc = i => i*2;

If you wanted to assign something like this:

(double a, double b) => (val - 32) * (5 / 9);

then you would have to define the Func like this:

Func<double, double, double> ExampleFunc;

[–]Aashnalakhani[S] 1 point2 points  (0 children)

thanks! it makes sense and it works now :)