I am currently in the process of wrapping some COM objects, (the hard way, as tlb is not available), and some of the interfaces return IEnumXXXX
types (an old favourite of mine from the days of ATL). I was wondering if anyone knows if .NET has any internal tricks for turning these into IEnumerator
s, or if I have to do all the typing myself?
What I have tried:
Not tried anything yet. If .NET has a built-in translator, then I will use that. Otherwise a simple Next()
-- Yield
flow for each of them is not difficult, just a lot of typing.