I was just wondering if anyone has tried to expose any of the generic collection types for COM interop? Will I have to create a strongly typed collection of my own or do the generics translate into acceptable COM types? ![]()
It's looking like I can implement IEnumberable and IEnumerator as a facade for a generic List<> but in my case need a key value pair I have to create a struct for the List to hold. Sorry to ramble.
-
-
All I gotta say is... Generics Rock

Was able to implement interface ICollection<>
Then with a private List<> just map the calls for the interface to the List equivalents. Presto.. no labor! =P -
Got any code to show me how? I have to expose a Dictionary<> to COM in some way.JParrish said:All I gotta say is... Generics Rock
Was able to implement interface ICollection<>
Then with a private List<> just map the calls for the interface to the List equivalents. Presto.. no labor! =P
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.