📜  linq where in list - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:56.791000             🧑  作者: Mango

代码示例1
var allowedStatus = new[]{ "A", "B", "C" };
var filteredOrders = orders.Order.Where(o => allowedStatus.Contains(o.StatusCode));