Hello
Is there any way to have a yield created iterator continue to the next item when an exception occurs inside one of the iterator blocks?
This is currently not working:
Boolean result;
while (true)
{
try
{
result = enumerator.MoveNext(); //Taken from a yield created enumerable
if (!result) break;
}
catch (Exception ex)
{
Console.WriteLine("CATCHED...");
continue;
}
}
Let me know,
Regards,
Albert