Grayson,
To add bookmark functionality, you'd have to override the
IEnumerator.GetEnumerator function and basically implement your own
enumerator. When you'd do it, you'd realize why it was taken out - the
enumerator will now have to deal with remembering it's client's bookmarks -
not a good idea. So basically it's do-able, but it's a pain in the neck and
generally not recommended.
So I'd recommend "faking" it - by using a "For" loop instead of a foreach
loop, and storing the ordinal (index integer) of where you wanted your
bookmark to be, and thence start running the for loop from the bookmark
onwards.
In .NET 2.0, Enumerators are GREATLY simplified using a new keyword called
"yeild", and well - then it'd be much easier to implement bookmarks but you
still run into the problem mentioned in para #1. Essentially it will get
easier to implement though.
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik