How to convert object to Dictionary in C#?

前端 未结 15 1784
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 17:58

How do I convert a dynamic object to a Dictionary in C# What can I do?

public static void MyMethod(object obj)
{
    if (typ         


        
15条回答
  •  佛祖请我去吃肉
    2020-12-13 18:25

    object parsedData = se.Deserialize(reader);
    System.Collections.IEnumerable stksEnum = parsedData as System.Collections.IEnumerable;
    

    then will be able to enumerate it!

提交回复
热议问题