C# exposing class to COM - Generic Collections

前端 未结 2 563
旧时难觅i
旧时难觅i 2020-12-18 10:58

We have a small framework written in C# .Net 2.0 that we want to expose to COM.

Problem is, we have some generic classes that would be exposed as the following:

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-18 11:54

    Check out this post. Either use a straight forward array or use an ArrayList. Seems like a step backwards, but generic collections don't play nice with COM.

提交回复
热议问题