COM doesn't support generics?What would be the best way to replicate this List<T>
so that it's COM visible in the tlh file.
EDIT::
c#::
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("FA677671-5E26-4307-AD2B-19BF1E7AFF8B")]
public interface IEvents
{
IEvents[] CreateListeners();
}
in C++ i have,
CComSafeArray<CSharp::IEvents> ppSA;
pInterface->CreateListeners(ppSA->GetSafeArrayPtr());
My question what i should do in this Create instance function so asto replicate this statement List evt=new List(); in the managed c#?