Answers for "linq where in list"

1

linq where in list

var allowedStatus = new[]{ "A", "B", "C" };
var filteredOrders = orders.Order.Where(o => allowedStatus.Contains(o.StatusCode));
Posted by: Guest on November-19-2020

Browse Popular Code Answers by Language