Is it not supported, is it supported but I have to do some tricks?
Example:
class Foo
{
public Foo(Func f1,Func
Generic constructors are not supported, but you can get around this by simply defining a generic, static method that returns a new Foo:
class Foo
{
public static Foo CreateFromFuncs(Func f1,Func f2)
{
...
}
}
which is used like this:
// create generic dependencies
var func1 = new Func(...);
var func2 = new Func(...);
// create nongeneric Foo from dependencies
Foo myFoo = Foo.CreateFromFuncs(func1, func2);