15 lines
222 B
C#
15 lines
222 B
C#
|
using System.Collections;
|
||
|
class Foo {
|
||
|
static public IEnumerable foo ()
|
||
|
{
|
||
|
try { yield break; } catch { } finally { }
|
||
|
}
|
||
|
public static int Main ()
|
||
|
{
|
||
|
int i = 0;
|
||
|
foreach (object o in foo ())
|
||
|
++i;
|
||
|
return i;
|
||
|
}
|
||
|
}
|