中我有:檢查XML值都包含在一個列表
var results = response.Xml.Descendants("M").Where(foo => foo.Value.Contains("john"));
如何改變這是:
List<string> ValidUsers = new List<string>();
ValidUsers.Add("John");
ValidUsers.Add("Smurf");
var results = response.Xml.Descendants("M")
.Where(foo => foo.Value.Contains(ValidUsers));
'。凡(富=> ValidUsers.Contains(foo.Value));'??? –