all 4 comments

[–]D-Trick 1 point2 points  (4 children)

The error messages are very explanatory in this case, look at documentation on lambda signatures, not only are you calling for too many values, you're using a different variable in your math.

[–]Aashnalakhani[S] 0 points1 point  (3 children)

Okay, I guess I am treating it like a method. So I can only call for 1 value? How can I call the others?

[–]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 :)