Posts Dynamic List Where
Post
Cancel

Dynamic List Where

query Dynamic List -- List

we have a function returns List ![snap623](https://www.pipiscrew.com/wp-content/uploads/2016/06/snap623.png)

in debug mode filled by : snap620

normally we will write : snap621

this will throw an exception like : snap622

the solution is to use reflection : js object d = ComTaxOffice.GetTaxOffices().FirstOrDefault(p => p.GetType().GetProperty("TaxOfficeId").GetValue(p, null).ToString() == "3"); </dynamic></dynamic></t>

origin - http://www.pipiscrew.com/?p=5870 dynamic-list-where

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags