eol
[mcs.git] / tests / gtest-linq-15.cs
blob91c373c1720a6d87f680d7a86d74582ccd8c5455
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
5 namespace NameCollisionTest
7 class Data
9 public int Value;
12 static class Ex
14 public static IEnumerable<TR> Foo<T, TR> (this IEnumerable<T> t, Func<T, TR> f)
16 yield return f (t.First ());
20 public class C
22 public static void Main ()
24 Data [] i = new Data [0];
25 var prods = from pe in i.Foo (pe => pe.Value) where pe > 0 select pe;