I have a dictionary with the following definition
Dictionary<string, object>
where the objects are of type Func<T1, T2>
The dictionary stores a variety of functions as objects with varying T1
and T2
. At runtime depending on the param passed I need to typecast the object to Func<T1, T2>
but am unable to do so. I know the types at runtime of T1
and T2
but have not found a way to get this working.
Any ideas on how to get this up and running?
Aucun commentaire:
Enregistrer un commentaire