How do I convert a dynamic object to a Dictionary in C# What can I do?
Dictionary
public static void MyMethod(object obj) { if (typ
Another option is to use NewtonSoft.JSON.
var dictionary = JObject.FromObject(anObject).ToObject>();