1
Vote

Generic Export With Method Export

description

Given this import:
provider.GetExportedValues<Foo<int>>();
 
This works:
[Export]
public class Foo<T>
{
public void Blah()
{
}
}
(Returns 1 export for Foo<int>).
 
This does not work:
[Export]
public class Foo<T>
{
[Export]
public void Blah()
{
}
}
(Returns 0 export for Foo<int>)
 
I understand that the method export here seems pointless since it can't possibly be imported with out-of-the-box catalogue, but this should be fine since I'll be creating my own custom catalog to handle this method export. What i can't understand is why Foo<int> does not return any export at all.

comments