On Aug 2, 8:44 am, Theraot <[email protected]> wrote: > Sorry, Cerebrus not Cerberus, Dislexya strikes.... > > On 2 ago, 07:42, Theraot <[email protected]> wrote: > > > In the Enumerator example you are not disposing the Enumerator, it a > > good practice to do it, aslo foreach will do it for you
I tried writing my own code that disposes the Enumerator; but the best I can come up with is to implement the IDisposable interface and implement my own IDisposable.Dispose() Method. http://msdn.microsoft.com/en-us/library/system.idisposable.dispose.aspx What are some good websites for sample C# code online? (I Googled for the better part of an hour but couldn't find any examples on disposing Enumerator.) Also after reading this group's posting guidelines I have a few questions: 1) Does this group accept top post, inline post, or both (this post I interjected my addition to Theraot's respose which is inline post; if I put my additions at the beginning of the post then it's top post)? 2) After posting at Pastebin.com which offers syntax highlighting, do I include the link to Pastebin? http://dotnetdevelopment.pastebin.com/XhzV2xz4 Or do I just assume other members at this group will go search on Pastebin? 3) For google groups I can't seem to find the option that hides the quote text: "- Show quoted text -" Any help? Thanks and please cut me some slack for the beginner questions - it's my first thread in this new forum.
