JavaScriptSerializer and monodevelop

Im reading this book , but am I a JavaScriptSerializer from the System.Web.Script.Serialization namespace because it seems inaccessible?

+3
source share
2 answers

Download the source here and add as an existing project. Then add as a reference:

http://www.bloxify.com/post/MonoTouch-Easy-JSON-Library.aspx

Edit:

You may also find that the monotouch linker is quite aggressive. I would have good code in the simulator, but a crash in the device with no method exceptions. Add a method somewhere in your application (you shouldn't call it):

    public void FixMonoTouchErrors()
    {
        var gc = new System.ComponentModel.GuidConverter();
        var sc = new System.ComponentModel.StringConverter();
        var dc = new System.ComponentModel.DateTimeConverter();
        var cc = new System.ComponentModel.CharConverter();
        var sh = new System.ComponentModel.Int16Converter();
        var sh1 = new System.ComponentModel.Int32Converter();
        var sh2 = new System.ComponentModel.Int64Converter();
        var dec = new System.ComponentModel.DecimalConverter();
        var nc0 = new System.ComponentModel.NullableConverter(typeof(Int16?));
        var nc1 = new System.ComponentModel.NullableConverter(typeof(Int32?));
        var nc2 = new System.ComponentModel.NullableConverter(typeof(Int64?));
        var nc3 = new System.ComponentModel.NullableConverter(typeof(decimal?));
        var nc4 = new System.ComponentModel.NullableConverter(typeof(DateTime?));
    }
+1
source

, - , , System.Web.Script. System.Web.Extensions.

+7

All Articles