2 using System.Collections.Generic;
\r
3 using System.Linq.Expressions;
\r
7 public bool ContainsAll<U> (IEnumerable<U> items) where U : T
\r
9 foreach (U item in items) {
\r
10 Expression<Func<bool>> e = () => !Contains (item);
\r
11 if (!e.Compile () ())
\r
18 public bool Contains (T t)
\r
28 var x = new Foo<int> ();
\r
29 return x.ContainsAll (new [] { 4, 6, 78 }) ? 0 : 1;
\r