beantownace
Active member
- Joined
- Feb 15, 2019
- Messages
- 26
- Programming Experience
- 5-10
Hello all,
I have a List<string> that contains a list of Keys I want to select from a List<Dictionary<string, object>>() how can I do this?
I have a List<string> that contains a list of Keys I want to select from a List<Dictionary<string, object>>() how can I do this?
Example:
var fields = new List<string>();
fields.Add("CustomerID");
fields.Add("Location");
var dictionary = new List<Dictionary<string, object>>();
//How can I get from the dictionary only the key value pairs
//where the key string is in the fields list?