Andrew,
I can see MessageEnumerator implementing IDisposable if it is implemented in
terms of the underlying Windows API, where the API requires that you "close"
the "windows" handle that you are enumerating over.
For example if MessageEnumerator is implemented in terms of MQCreateCursor,
MQCloseCursor. MQCloseCursor would need to be called by IDisposable...
However I haven't looked at the IL...
Hope this helps
Jay
"Andrew Quine" <an**********@fastmail.fm> wrote in message
news:d7**************************@posting.google.c om...
Hi
Short one: looking for a good example and an explanation of such
enumerators. I know MessageEnumerator and ResourceReader do this, for
example, but what is the implementation of the enumerator doing that
needs a Dispose of its own?
Cheers!
Andrew Quine