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 -

jquery - ReferenceError: CKEDITOR is not defined -

android - Go back to previous fragment -