a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
28 lines
351 B
C#
28 lines
351 B
C#
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 ()
|
|
{ }
|
|
}
|