public class Item
{
public List<int> val { get; set; }
public double support { get; set; }
}
我声明变量:
List<Item> t = new List<Item>();
t.Add(new Item(){val = new List<int>(){1,2,3};support=.1);
var b = new Item();
b.val = t[0].val;
b.support=t[0].support;
t.Contain(b) // return false???
我正在尝试使用 linq
t.Any(a=>a.val==b.val) // I'm get error Expression cannot contain lambda expressions