1
Vote

Lazy<> Import Bug

description

This code works fine.
[Export]
public class A
{
[ImportingConstructor]
public A(B1 b1, B2 b2){}
}
[Export]
public class B1{}
[Export]
public class B2{}
 
But this NOT!
[Export]
public class A
{
[ImportingConstructor]
public A(Lazy<B1> b1, Lazy<B2> b2){}
}
[Export]
public class B1{}
[Export]
public class B2{}

comments