2 using System
.Collections
;
3 using System
.Collections
.Generic
;
5 public delegate void Foo ();
9 public static implicit operator Foo (Test test
)
11 return delegate { Console.WriteLine ("Hello World!"); }
;
14 public static IEnumerable
<Test
> operator + (Test test
, Test foo
)
20 public IEnumerable
<int> Foo
{
26 Console
.WriteLine ("Foo!");
32 Test test
= new Test ();
35 foreach (Test t
in test
+ test
)
36 Console
.WriteLine (t
);