to dump IEnumerable of IDictionary as a table like datasets are dumped

edited February 2013
Is it possible?

P.S. it's impossible to use the less-than and greater-than characters in the title on this forum


  • Options

    I know this is an old question, but for anyone else looking for the answer like I was today, I just converted my IDictionary<string, object> to ExpandoObject with the below extension method and it work as expected.

        public static dynamic ToExpando(this IDictionary<string, object?>? dict)
            IDictionary<string, object?> expando = new ExpandoObject();
            if (dict == null)
                return expando;
            foreach (var (key, value) in dict)
                expando[key] = value;
            return expando;
Sign In or Register to comment.