linux-packaging-mono/mcs/tests/gtest-iter-31.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

32 lines
377 B
C#

using System.Collections.Generic;
using System.Linq;
class B
{
public object Foo (object obj)
{
return null;
}
}
class C
{
B ctx = new B ();
public static void Main ()
{
foreach (var c in new C ().Test ()) {
}
}
IEnumerable<ushort> Test ()
{
string[] s = new[] { "a", "b", "c" };
var m = s.Select (l => ctx.Foo (l)).ToArray ();
yield break;
}
}