internal static object BasicDeserialize(string input, int depthLimit, JavaScriptSerializer serializer) {
     JavaScriptObjectDeserializer jsod = new JavaScriptObjectDeserializer(input, depthLimit, serializer);
     object result = jsod.DeserializeInternal(0);
     if (jsod._s.GetNextNonEmptyChar() != null) {
         throw new ArgumentException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.JSON_IllegalPrimitive, jsod._s.ToString()));
     }
     return result;
 }
        internal static object BasicDeserialize(string input, int depthLimit, JavaScriptSerializer serializer)
        {
            JavaScriptObjectDeserializer jsod = new JavaScriptObjectDeserializer(input, depthLimit, serializer);
            object result = jsod.DeserializeInternal(0);

            if (jsod._s.GetNextNonEmptyChar() != null)
            {
                throw new ArgumentException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.JSON_IllegalPrimitive, jsod._s.ToString()));
            }
            return(result);
        }
 internal static object BasicDeserialize(string input, int depthLimit, JavaScriptSerializer serializer)
 {
     JavaScriptObjectDeserializer deserializer = new JavaScriptObjectDeserializer(input, depthLimit, serializer);
     object obj2 = deserializer.DeserializeInternal(0);
     char? nextNonEmptyChar = deserializer._s.GetNextNonEmptyChar();
     int? nullable3 = nextNonEmptyChar.HasValue ? new int?(nextNonEmptyChar.GetValueOrDefault()) : null;
     if (nullable3.HasValue)
     {
         throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, AtlasWeb.JSON_IllegalPrimitive, new object[] { deserializer._s.ToString() }));
     }
     return obj2;
 }
Ejemplo n.º 4
0
        internal static object BasicDeserialize(string input, int depthLimit, JavaScriptSerializer serializer)
        {
            JavaScriptObjectDeserializer deserializer = new JavaScriptObjectDeserializer(input, depthLimit, serializer);
            object obj2             = deserializer.DeserializeInternal(0);
            char?  nextNonEmptyChar = deserializer._s.GetNextNonEmptyChar();
            int?   nullable3        = nextNonEmptyChar.HasValue ? new int?(nextNonEmptyChar.GetValueOrDefault()) : null;

            if (nullable3.HasValue)
            {
                throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, AtlasWeb.JSON_IllegalPrimitive, new object[] { deserializer._s.ToString() }));
            }
            return(obj2);
        }