【发布时间】:2011-02-02 02:59:22
【问题描述】:
我有一个对象(产品),其属性类型为“数组”
例如product.tags = {"tag1","tag2","tag9"}
我有一组输入标签要过滤。
...但这并不完全有效:
List<string> filterTags = new List<string>() { "tag1", "tag3" };
var matches = from p in products
where p.Tags.Contains(filterTags)
select p;
有什么建议吗? 谢谢。
【问题讨论】: