I'm writing a DLL in C# that is to be used in VBA. One method I am writing will get a List of a custom type (PdfReaderPage). My question is this: Can I pass a List of a custom type into a VB Collection? I had this in mind to do
public Microsoft.VisualBasic.Collection GetPageByKeyWord(String keyword)
{
//Do some code to find correct page list
//Get List<PdfReaderPage> myList
Microsoft.VisualBasic.Collection VbCollection = myList;
return VbCollection;
}
Except I'm not sure if I can either A.) Convert a List into a Collection or B.) Am even going at this the best way.