Is it possible to Marshal a generic return type as non-generic for COM interop?
Let's say I have the following class:
[ComVisible(true)]
public class Foo
{
public IEnumerable<string> GetStr() // Generic return type
{
yield break;
}
}
I know that IEnumerable<string> implements IEnumerable.
Can I force tlbexp.exe (via return: attribute or via some other way) to expose GetStr() method as a method returning IEnumerable?