Getting value from object dictionary C#

前端 未结 1 751
孤城傲影
孤城傲影 2021-01-27 02:02

I am using the LiveConnect sdk to get some user info.
After doing whatever is necessary for that, this is the result I\'m getting:

{
   \"id\": \"123456789         


        
相关标签:
1条回答
  • 2021-01-27 02:21

    do you had tried to make a cast?

    for example:

    (userData["emails"] as Dictionary<string,object>)["account"]

    or:

    ((Dictionary<string,object>)userData["emails"])["account"]

    0 讨论(0)
提交回复
热议问题