How make Dictionary with lambda functions, that Func<> contains different numbers of parameters?
Dictionary<string, Func<T, double>> operationsList
= new Dictionary<string, Func<T, double>>();
It mast be so?
How make Dictionary with lambda functions, that Func<> contains different numbers of parameters?
Dictionary<string, Func<T, double>> operationsList
= new Dictionary<string, Func<T, double>>();
It mast be so?
You can make your dictionary type
Delegate
, but I'm pretty sure that callingFunc<>
stored this way will be a pain:Calling: