Пример #1
0
        // Token: 0x06001114 RID: 4372 RVA: 0x00055864 File Offset: 0x00053A64
        public static string SerializeObject(object value, Type type, Class_322 formatting, Class_380 settings)
        {
            Class_418 class_ = Class_418.tmethod_3162(settings);

            class_.prop_16 = formatting;
            return(Class_416.SerializeObjectInternal(value, type, class_));
        }
Пример #2
0
        // Token: 0x06001128 RID: 4392 RVA: 0x00055AEC File Offset: 0x00053CEC
        public static void PopulateObject(string value, object target, Class_380 settings)
        {
            Class_418 class_ = Class_418.tmethod_3162(settings);

            using (Class_285 class_2 = new Class_409(new StringReader(value)))
            {
                class_.vmethod_3165(class_2, target);
                if (class_2.vmethod_1885() && class_2.prop_9 != Class_508.Comment)
                {
                    throw new Class_417("Additional text found in JSON string after finishing deserializing object.");
                }
            }
        }
Пример #3
0
        // Token: 0x06001122 RID: 4386 RVA: 0x000559E8 File Offset: 0x00053BE8
        public static object DeserializeObject(string value, Type type, Class_380 settings)
        {
            Class_517.ArgumentNotNull(value, "value");
            Class_418 class_ = Class_418.tmethod_3162(settings);

            if (!class_.pmethod_3159())
            {
                class_.prop_26 = true;
            }
            object result;

            using (Class_409 class_2 = new Class_409(new StringReader(value)))
            {
                result = class_.smethod_3170(class_2, type);
            }
            return(result);
        }
Пример #4
0
        // Token: 0x06001112 RID: 4370 RVA: 0x0005583C File Offset: 0x00053A3C
        public static string SerializeObject(object value, Type type, Class_380 settings)
        {
            Class_418 jsonSerializer = Class_418.tmethod_3162(settings);

            return(Class_416.SerializeObjectInternal(value, type, jsonSerializer));
        }