c# - Cast IDbSet<Foo> to IDbSet<dynamic> -


i have utility method looks this

 void apply<t>(iqueryable<t> queryable) t : class {...} 

i doing reflection instance of idbset<x> know x fits constraints. i'd cast idbset<dynamic> compiler let through doing dbset ibset<dynamic> returns null. how can this?

i realize cast whole thing dynamic there few other reasons prefer avoid doing that.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -