Quantcast
Channel: Managed Extensibility Framework
Viewing all articles
Browse latest Browse all 265

Created Unassigned: Bug in Open Generics with IBiz [14615]

$
0
0
In the code below x gets 0 results but it should get one.

```
class Program
{
static void Main(string[] args)
{
var cat = new AssemblyCatalog(typeof (Program).Assembly);
var con = new CompositionContainer(cat);
var x = con.GetExportedValues<Buz<int>>();
}
}

interface IBiz<T, U> { }

[Export(typeof(IBiz<,>))]
class Biz<T, U> : IBiz<T, U> { }

[Export(typeof(Buz<>))]
class Buz<T>
{
public IBiz<T, int> Biz { get; private set; }

[ImportingConstructor]
public Buz(IBiz<T, int> biz)
{
Biz = biz;
}
}
```

Viewing all articles
Browse latest Browse all 265

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>