Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

How to call a legacy COM collection by IEnumerable interface

$
0
0

I have one legacy COM,

after I imported it into one C# project,

it expose three function: _NewEnum, item, Count

Now I can not walk through its items by foreach( ... in ... ) clause,

it seems that _NewEnum function returns one "EnumeratorViewOfEnumVariant" object instead of IEnumerable instance object.

How can I deal with this?

the COM has only one dll file and no TLB/IDL file exist now.


Viewing all articles
Browse latest Browse all 1710

Trending Articles