add ISafeSerializationData
[mcs.git] / tests / gtest-iter-05.cs
blobcd4a15a99e1fd04276462a7796dc09abdd3767f4
1 using System;
2 using System.Collections.Generic;
4 public class Test
6 public static void Main ()
8 Foo<int> nav = new Foo<int> ();
9 IEnumerable<int> t = TestRoutine<int> (new int [] { 1 }, nav);
10 new List<int> (t);
13 public static IEnumerable<T> TestRoutine<T> (IEnumerable<T> a, Foo<T> f)
15 f.CreateItem<int> ();
16 foreach (T n in a) {
17 yield return n;
22 public class Foo<T>
24 public void CreateItem<G> ()