a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
377 B
C#
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;
|
|
}
|
|
}
|
|
|