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
Post a Comment