예제 #1
0
        // Token: 0x060014B4 RID: 5300 RVA: 0x0005F550 File Offset: 0x0005D750
        public static Class_459 xmethod_3781(Class_285 arg_0, Class_435 arg_1)
        {
            Class_517.ArgumentNotNull(arg_0, "reader");
            Class_517.ArgumentNotNull(arg_1, "resolver");
            Class_460 class_ = new Class_460(arg_1);

            return(class_.smethod_3790(arg_0));
        }
예제 #2
0
        // Token: 0x060014C9 RID: 5321 RVA: 0x00060494 File Offset: 0x0005E694
        private Class_463?xmethod_3801(Class_361 arg_0)
        {
            Class_428 class_ = arg_0.prop_3;

            if (class_ == Class_428.Array)
            {
                Class_463?class_2 = new Class_463?(Class_463.None);
                foreach (Class_361 class_3 in ((IEnumerable <Class_361>)arg_0))
                {
                    if (class_3.prop_3 != Class_428.String)
                    {
                        throw Class_318.xmethod_2221(class_3, class_3.prop_7, "Exception JSON schema type string token, got {0}.".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_3));
                    }
                    class_2 |= Class_460.tmethod_3802(Class_361.lmethod_2508(class_3));
                }
                return(class_2);
            }
            if (class_ != Class_428.String)
            {
                throw Class_318.xmethod_2221(arg_0, arg_0.prop_7, "Expected array or JSON schema type string token, got {0}.".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_3));
            }
            return(new Class_463?(Class_460.tmethod_3802(Class_361.lmethod_2508(arg_0))));
        }
예제 #3
0
        // Token: 0x06001386 RID: 4998 RVA: 0x0005C14C File Offset: 0x0005A34C
        private void dmethod_3536(string str_0, Class_296 arg_0, Class_463 arg_1)
        {
            IList <Class_463> list;

            if (Enum.IsDefined(typeof(Class_463), arg_1))
            {
                list = new List <Class_463>
                {
                    arg_1
                };
            }
            else
            {
                IEnumerable <Class_463> flagsValues = Class_505.GetFlagsValues <Class_463>(arg_1);
                if (Class_436.field_2 == null)
                {
                    Class_436.field_2 = new Func <Class_463, bool>(Class_436.lmethod_3538);
                }
                list = flagsValues.Where(Class_436.field_2).ToList <Class_463>();
            }
            if (list.Count == 0)
            {
                return;
            }
            arg_0.gmethod_2013(str_0);
            if (list.Count == 1)
            {
                arg_0.kmethod_2037(Class_460.gmethod_3803(list[0]));
                return;
            }
            arg_0.pmethod_2009();
            foreach (Class_463 arg_2 in list)
            {
                arg_0.kmethod_2037(Class_460.gmethod_3803(arg_2));
            }
            arg_0.smethod_2010();
        }