2 using System
.Collections
.Generic
;
3 using System
.Linq
.Expressions
;
7 public bool ContainsAll
<U
> (IEnumerable
<U
> items
) where U
: T
9 Func
<bool> d
= delegate () {
10 foreach (U item
in items
) {
11 Expression
<Func
<bool>> e
= () => !Contains (item
);
22 public bool Contains (T t
)
30 public static int Main ()
32 var x
= new Foo
<int> ();
33 return x
.ContainsAll (new [] { 4, 6, 78 }
) ? 0 : 1;