Wednesday, 11 September 2013

How to use LINQ with dynamic collections

How to use LINQ with dynamic collections

Is there a way to convert dynamic object to IEnumerable Type to filter
collection with property.
dynamic data = JsonConvert.DeserializeObject(response.Content);
I need to access something like this
var a = data.Where(p => p.verified == true)
Any Ideas?

No comments:

Post a Comment