linux-packaging-mono/mcs/tests/test-iter-26.cs

19 lines
230 B
C#
Raw Normal View History

using System;
using System.Collections;
class C
{
public static IEnumerable Test (bool b, int value)
{
if (b) {
Console.WriteLine (value);
}
yield return 1;
}
public static void Main ()
{
Test (true, 5);
}
}