blob: e26d41b015418f18976c61ccaa96f2a11bf3213b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using System;
using System.Collections;
using System.Collections.Generic;
public class Foo<T>
{
public IEnumerator<T> getEnumerator (int arg)
{
if (arg == 1) {
int foo = arg;
Console.WriteLine (foo);
}
if (arg == 2) {
int foo = arg;
Console.WriteLine (foo);
}
yield break;
}
}
class X
{
public static void Main ()
{ }
}
|