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

java - Checkbox item adds to spinner -

php - mySQL problems with this code? -

C# MVC AngularJS -