hi guys ,

hope you can help me to understand and get this .

i,d like to make a dictionary of Dictionary<int,a function of (double , double , bool >> and by getting the values of the dictionary get the result of that function inside .

i was trying this

```
Dictionary<int, Func<double,double,bool,double>> Dicti1 = new Dictionary<int,Func<double,double,bool,double>>();
//thinking first 3 are fucntion parameters last the result
//Func<T1, T2, T3, TResult>
```

so i did try adding something like this function :

```
public double FuncDoble1(double x, double y , bool Ad)
{
if (Ad)
{
x = x + y;
}
if (!Ad)
{
var r = new Random();
double z = r.NextDouble()-0.5 ;
x = x - y + z ;
}
return x;
}
```

and i wanted to do things like this

```
Dicti1.Add(1,FuncDoble1(2,2,true));//this does not work
//
var val = Dicti1.Values.ToList();
FTest.AssignFrom(val);
//
```

how i could do this of adding a functions parameters to dictionary and returns the result of it as value .

thanks in advance