How to reset an IEnumerator instance in below case? (e.Reset() throws NotImplementedException)
void Main()
{
IEnumerator<string> e = new List<string> { "a", "b", "c" }.Select(o => o).GetEnumerator();
while( e.MoveNext() )
{
Console.WriteLine( e.Current );
}
if(
//some condition
)
{
e.Reset();
while( e.MoveNext() )
{
//Do something else with e.Current
}
}
}