Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git] / mcs / tests / gtest-iter-09.cs
blobf2e04f7618b4cd955d957155b9ba410a78b5a696
1 using System;
2 using System.Collections.Generic;
4 class Test
6 static IEnumerable<T> Create<T> (T [,] self)
8 for (int i = 0; i < self.Length; ++i)
9 yield return self [0, i];
12 public static int Main ()
14 int [,] s = new int [,] { { 1, 2, 3 } };
15 foreach (int i in Create (s))
16 Console.WriteLine (i);
18 return 0;