blob: f0f7bd531f366e1c5a3dbde52583edac6c64c612 (
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 delegate int Int2Int (int i);
public class FunEnumerable
{
int size;
Int2Int f;
public FunEnumerable(int size, Int2Int f)
{
this.size = size; this.f = f;
}
public IEnumerator<int> GetEnumerator()
{
yield return f (size);
}
}
class X
{
public static void Main ()
{ }
}
|