c# - how to cast my y.Value to List<Dictionary<string, object>> -


i want cast y.value list<dictionary<string, object>.

i tried: y.value list<dictionary<string, object>>

but return null.

this watch:

.

i don't know how handle object {system.collections.generic.dictionary<string,object>}.

thanks

y.value list<object> casted object, , objects dictionary<string, object>, although casted object too. typing not helpful here.

you can use linq dictionaries out:

var list = ((ienumerable<object>)y.value)            .cast<dictionary<string, object>>()            .tolist(); 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -