I know in Python you can use functools.partial to pass a function object with some or all of the parameters already defined.
Is there a way to do this in C#? I would like to do the following:
class1.MethodTakingAMethodParameter(3, "foo", class1.MethodToPass(param1, param2, param3));
For a delegate like delegate void Blah().
You can use lambdas to give some parameters a value:
Or if you want to only put a value into some params:
In your example: