[Mono-list] Not implemented exceptions in Getters

Dave Curylo curylod at asme.org
Sat Jul 12 20:07:20 UTC 2014


The following code works fine on current GA releases of mono 3.4.0 and
Newtonsoft.Json 6.0.3, btw. It's simplistic, but just add whatever else you
have in your hashtable that's resulting in an exception and reply with that
source.  I'm sure it isn't the hashtable itself that can't be serialized.

using System;
using System.Collections;
using Newtonsoft.Json;

namespace Test {
        public class Ser {
                public static void Main(string [] args) {
                        var ht = new Hashtable();
                        ht.Add("test", 1234);
                        var json = JsonConvert.SerializeObject(ht);
                        Console.WriteLine(json);
                }
        }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20140712/8bc793f2/attachment.html>


More information about the Mono-list mailing list