SyntaxFix
Write A Post
Hire A Developer
Questions
Try with Contains function;
Contains
Determines whether a sequence contains a specified element.
var allowedStatus = new[]{ "A", "B", "C" }; var filteredOrders = orders.Order.Where(o => allowedStatus.Contains(o.StatusCode));