I would suggest the following “general” approach on that matter:
- Create a custom class that samples the “properties” of the objects that you want to query - say like this:
-
Build up a List of the custom type:
-
Query the List (LINQ and the likes):
Notify if you want an entry level demo on the above (not exactly 100% suitable for novices mind … but no pain no gain).



