I have a WinForms app in which I want to use a text box to take in a search query (e.g. mens black tshirt) and then filter a list of objects based on this search query.
The list of objects are orders objects. Each order object had several properties such as gender, size, colour etc.
If I get an array of strings by splitting the search query by the Space character, what is the best way to search for every item in this string array against every property in every order object in the list and return those that match all the strings in the string array?
For example if I search for "kids black medium", I only want to return orders that are kids AND black AND medium, so I would not want just black orders or just kids order etc.
