What is the advantage of Currying in C#?
What is the advantage of achieving partial function application on a curried function?
If your question was how to implement currying in C# , here is an example
public Func> Curry(Func func)
{
return p1 => p2 => func(p1, p2);
}
Currying can be implemented in any language that supports closures(lambdas), and is useful for partial function application like in UI programming where all the input necessary for the execution of function isnt received, so a curried function is passed around with already received inputs captured in it.