示例#1
0
 // Token: 0x06000B42 RID: 2882 RVA: 0x0003A9D0 File Offset: 0x00038BD0
 private static void smethod_0(Class135 class135_2, JsonSchema jsonSchema_0)
 {
     class135_2.method_1(class135_2.method_0() || (jsonSchema_0.Required ?? false));
     class135_2.Type &= (jsonSchema_0.Type ?? JsonSchemaType.Any);
     class135_2.method_3(Class79.smethod_3(class135_2.method_2(), jsonSchema_0.MinimumLength));
     class135_2.method_5(Class79.smethod_2(class135_2.method_4(), jsonSchema_0.MaximumLength));
     class135_2.method_7(Class79.smethod_4(class135_2.method_6(), jsonSchema_0.DivisibleBy));
     class135_2.method_9(Class79.smethod_4(class135_2.method_8(), jsonSchema_0.Minimum));
     class135_2.method_11(Class79.smethod_4(class135_2.method_10(), jsonSchema_0.Maximum));
     class135_2.method_13(class135_2.method_12() || (jsonSchema_0.ExclusiveMinimum ?? false));
     class135_2.method_15(class135_2.method_14() || (jsonSchema_0.ExclusiveMaximum ?? false));
     class135_2.method_17(Class79.smethod_3(class135_2.method_16(), jsonSchema_0.MinimumItems));
     class135_2.method_19(Class79.smethod_2(class135_2.method_18(), jsonSchema_0.MaximumItems));
     class135_2.method_33(class135_2.method_32() || jsonSchema_0.PositionalItemsValidation);
     class135_2.jEdbffsLly(class135_2.method_34() && jsonSchema_0.AllowAdditionalProperties);
     class135_2.method_36(class135_2.method_35() && jsonSchema_0.AllowAdditionalItems);
     class135_2.method_38(class135_2.method_37() || jsonSchema_0.UniqueItems);
     if (jsonSchema_0.Enum != null)
     {
         if (class135_2.method_39() == null)
         {
             class135_2.method_40(new List <JToken>());
         }
         class135_2.method_39().smethod_8(jsonSchema_0.Enum, JToken.EqualityComparer);
     }
     class135_2.method_42(class135_2.method_41() | (jsonSchema_0.Disallow ?? JsonSchemaType.None));
     if (jsonSchema_0.Pattern != null)
     {
         if (class135_2.method_20() == null)
         {
             class135_2.method_21(new List <string>());
         }
         class135_2.method_20().smethod_5(jsonSchema_0.Pattern);
     }
 }
示例#2
0
文件: Class6.cs 项目: 15831944/WW
        protected internal override void vmethod_1(Class79 writer)
        {
            Class74 stream = writer.Stream;

            foreach (Class57 class57 in (IEnumerable <Class57>) this.ilist_0)
            {
                stream.method_9((int)class57.AdvanceWidth);
                stream.method_5((int)class57.LeftSideBearing);
            }
        }
示例#3
0
文件: Class8.cs 项目: 15831944/WW
        protected internal override void vmethod_1(Class79 writer)
        {
            Class74 stream = writer.Stream;

            stream.method_17(this.int_0);
            stream.method_7((int)this.short_0);
            stream.method_7((int)this.short_1);
            stream.method_7((int)this.short_2);
            stream.method_11((int)this.ushort_0);
            stream.method_7((int)this.short_3);
            stream.method_7((int)this.short_4);
            stream.method_7((int)this.short_5);
            stream.method_5((int)this.short_6);
            stream.method_5((int)this.short_7);
            stream.method_5((int)this.short_8);
            stream.method_5(0);
            stream.method_5(0);
            stream.method_5(0);
            stream.method_5(0);
            stream.method_5((int)this.short_9);
            stream.method_9((int)this.ushort_1);
        }
示例#4
0
        protected internal override void vmethod_1(Class79 writer)
        {
            Class74 stream = writer.Stream;

            stream.method_17(this.int_0);
            stream.method_9((int)this.ushort_0);
            if (this.int_0 != 65536)
            {
                return;
            }
            stream.method_9((int)this.ushort_1);
            stream.method_9((int)this.ushort_2);
            stream.method_9((int)this.ushort_3);
            stream.method_9((int)this.ushort_4);
            stream.method_9((int)this.ushort_5);
            stream.method_9((int)this.ushort_6);
            stream.method_9((int)this.ushort_7);
            stream.method_9((int)this.ushort_8);
            stream.method_9((int)this.ushort_9);
            stream.method_9((int)this.ushort_10);
            stream.method_9((int)this.ushort_11);
            stream.method_9((int)this.ushort_12);
            stream.method_9((int)this.ushort_13);
        }
示例#5
0
    // Token: 0x0600030A RID: 778 RVA: 0x0001B008 File Offset: 0x00019208
    public static byte[] smethod_0(string string_0)
    {
        if (string_0 == null)
        {
            throw new Exception();
        }
        MemoryStream memoryStream = new MemoryStream(string_0.Length * 4 / 5);

        byte[] result;
        try
        {
            int  num  = 0;
            uint num2 = 0u;
            foreach (char c in string_0)
            {
                if (c == 'z' && num == 0)
                {
                    Class79.smethod_1(memoryStream, num2, 0);
                }
                else
                {
                    if (c < '!' || c > 'u')
                    {
                        throw new Exception();
                    }
                    checked
                    {
                        num2 += (uint)(unchecked ((ulong)Class79.uint_0[num]) * (ulong)(unchecked ((long)(checked (c - '!')))));
                    }
                    num++;
                    if (num == 5)
                    {
                        Class79.smethod_1(memoryStream, num2, 0);
                        num  = 0;
                        num2 = 0u;
                    }
                }
            }
            if (num == 1)
            {
                throw new Exception();
            }
            if (num > 1)
            {
                for (int j = num; j < 5; j++)
                {
                    checked
                    {
                        num2 += 84u * Class79.uint_0[j];
                    }
                }
                Class79.smethod_1(memoryStream, num2, 5 - num);
            }
            result = memoryStream.ToArray();
        }
        finally
        {
            ((IDisposable)memoryStream).Dispose();
        }
        return(result);
    }
示例#6
0
    // Token: 0x0600011B RID: 283 RVA: 0x0000D864 File Offset: 0x0000BA64
    public static void smethod_1(JObject jobject_0, string string_0)
    {
        try
        {
            foreach (JToken jtoken in jobject_0.Values())
            {
                if (!Class130.dictionary_0.ContainsKey((int)jtoken["id"]))
                {
                    MainWindow.webView_0.QueueScriptCall(string.Format("updateButton({0},true)", jtoken["id"]));
                    string  text = jtoken["store"].ToString().ToLower();
                    uint    num  = Class79.smethod_0(text);
                    Class44 @class;
                    if (num <= 2430139328u)
                    {
                        if (num <= 1369243890u)
                        {
                            if (num <= 650952027u)
                            {
                                if (num <= 536391395u)
                                {
                                    if (num != 75628775u)
                                    {
                                        if (num != 536391395u)
                                        {
                                            goto IL_6E9;
                                        }
                                        if (!(text == "net-a-porter us"))
                                        {
                                            goto IL_6E9;
                                        }
                                        @class = new Class50(jtoken, "am", "us");
                                    }
                                    else
                                    {
                                        if (!(text == "footpatrol"))
                                        {
                                            goto IL_6E9;
                                        }
                                        @class = new Class45(jtoken, "footpatrol", "AD60F89E1BB248F388B9FC671851A2B8");
                                    }
                                }
                                else if (num != 634394085u)
                                {
                                    if (num != 650952027u)
                                    {
                                        goto IL_6E9;
                                    }
                                    if (!(text == "footaction"))
                                    {
                                        goto IL_6E9;
                                    }
                                    @class = new Class51(jtoken, "footaction.com");
                                }
                                else
                                {
                                    if (!(text == "net-a-porter eu"))
                                    {
                                        goto IL_6E9;
                                    }
                                    @class = new Class50(jtoken, "intl", "gb");
                                }
                            }
                            else if (num <= 1003079584u)
                            {
                                if (num != 988777544u)
                                {
                                    if (num != 1003079584u)
                                    {
                                        goto IL_6E9;
                                    }
                                    if (!(text == "champs sports"))
                                    {
                                        goto IL_6E9;
                                    }
                                    @class = new Class47(jtoken, "champssports.com");
                                }
                                else
                                {
                                    if (!(text == "the hip store"))
                                    {
                                        goto IL_6E9;
                                    }
                                    @class = new Class45(jtoken, "thehipstore", "117860D26D504A5FB26B2FB64CE35FB8");
                                }
                            }
                            else if (num != 1271241200u)
                            {
                                if (num != 1369243890u)
                                {
                                    goto IL_6E9;
                                }
                                if (!(text == "supreme eu"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class54(jtoken, "EU");
                            }
                            else
                            {
                                if (!(text == "supreme us"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class54(jtoken, "US");
                            }
                        }
                        else if (num <= 2033596121u)
                        {
                            if (num <= 1613681225u)
                            {
                                if (num != 1374915048u)
                                {
                                    if (num != 1613681225u)
                                    {
                                        goto IL_6E9;
                                    }
                                    if (!(text == "footlocker us "))
                                    {
                                        goto IL_6E9;
                                    }
                                    @class = new Class51(jtoken, "footlocker.com");
                                }
                                else
                                {
                                    if (!(text == "eastbay"))
                                    {
                                        goto IL_6E9;
                                    }
                                    @class = new Class47(jtoken, "eastbay.com");
                                }
                            }
                            else if (num != 1819840374u)
                            {
                                if (num != 2033596121u)
                                {
                                    goto IL_6E9;
                                }
                                if (!(text == "size?"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class45(jtoken, "size", "3565AE9C56464BB0AD8020F735D1479E");
                            }
                            else
                            {
                                if (!(text == "jd sports"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class45(jtoken, "jdsports", "60743806B14F4AF389F582E83A141733");
                            }
                        }
                        else if (num <= 2404272289u)
                        {
                            if (num != 2191237913u)
                            {
                                if (num != 2404272289u)
                                {
                                    goto IL_6E9;
                                }
                                if (!(text == "footaction "))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class51(jtoken, "footaction.com");
                            }
                            else
                            {
                                if (!(text == "footlocker ca "))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class51(jtoken, "footlocker.ca");
                            }
                        }
                        else if (num != 2407667328u)
                        {
                            if (num != 2414935827u)
                            {
                                if (num != 2430139328u)
                                {
                                    goto IL_6E9;
                                }
                                if (!(text == "lacoste nl"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class53(jtoken, "/on/demandware.store/Sites-NL-Site/fr/");
                            }
                            else
                            {
                                if (!(text == "lacoste dk"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class53(jtoken, "/on/demandware.store/Sites-DK-Site/fr/");
                            }
                        }
                        else
                        {
                            if (!(text == "mr porter eu"))
                            {
                                goto IL_6E9;
                            }
                            @class = new Class46(jtoken, "intl", "gb");
                        }
                    }
                    else if (num <= 2661617280u)
                    {
                        if (num <= 2551966898u)
                        {
                            if (num <= 2500795398u)
                            {
                                if (num != 2464533209u)
                                {
                                    if (num != 2500795398u)
                                    {
                                        goto IL_6E9;
                                    }
                                    if (!(text == "lacoste pl"))
                                    {
                                        goto IL_6E9;
                                    }
                                    @class = new Class53(jtoken, "/on/demandware.store/Sites-PL-Site/fr/");
                                }
                                else
                                {
                                    if (!(text == "lacoste ch"))
                                    {
                                        goto IL_6E9;
                                    }
                                    @class = new Class53(jtoken, "/on/demandware.store/Sites-CH-Site/fr/");
                                }
                            }
                            else if (num != 2505773186u)
                            {
                                if (num != 2551966898u)
                                {
                                    goto IL_6E9;
                                }
                                if (!(text == "lacoste uk"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class53(jtoken, "/on/demandware.store/Sites-GB-Site/en/");
                            }
                            else
                            {
                                if (!(text == "mr porter us"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class46(jtoken, "am", "us");
                            }
                        }
                        else if (num <= 2581976542u)
                        {
                            if (num != 2563815827u)
                            {
                                if (num != 2581976542u)
                                {
                                    goto IL_6E9;
                                }
                                if (!(text == "lacoste ca"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class53(jtoken, "/on/demandware.store/Sites-CA-Site/fr/");
                            }
                            else
                            {
                                if (!(text == "lacoste kr"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class53(jtoken, "/on/demandware.store/Sites-KR-Site/fr/");
                            }
                        }
                        else if (num != 2599048351u)
                        {
                            if (num != 2649822493u)
                            {
                                if (num != 2661617280u)
                                {
                                    goto IL_6E9;
                                }
                                if (!(text == "champs sports "))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class51(jtoken, "champssports.com");
                            }
                            else
                            {
                                if (!(text == "lacoste de"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class53(jtoken, "/on/demandware.store/Sites-DE-Site/fr/");
                            }
                        }
                        else
                        {
                            if (!(text == "lacoste at"))
                            {
                                goto IL_6E9;
                            }
                            @class = new Class53(jtoken, "/on/demandware.store/Sites-AT-Site/fr/");
                        }
                    }
                    else if (num <= 3023372879u)
                    {
                        if (num <= 2866210327u)
                        {
                            if (num != 2666305922u)
                            {
                                if (num != 2866210327u)
                                {
                                    goto IL_6E9;
                                }
                                if (!(text == "lacoste it"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class53(jtoken, "/on/demandware.store/Sites-IT-Site/fr/");
                            }
                            else
                            {
                                if (!(text == "lacoste fr"))
                                {
                                    goto IL_6E9;
                                }
                                @class = new Class53(jtoken, "/on/demandware.store/Sites-FR-Site/fr/");
                            }
                        }
                        else if (num != 2954629754u)
                        {
                            if (num != 3023372879u)
                            {
                                goto IL_6E9;
                            }
                            if (!(text == "footlocker eu "))
                            {
                                goto IL_6E9;
                            }
                            @class = new Class49(jtoken);
                        }
                        else
                        {
                            if (!(text == "lacoste us"))
                            {
                                goto IL_6E9;
                            }
                            @class = new Class53(jtoken, "/on/demandware.store/Sites-FlagShip-Site/en_US/");
                        }
                    }
                    else if (num <= 3395413464u)
                    {
                        if (num != 3117874612u)
                        {
                            if (num != 3395413464u)
                            {
                                goto IL_6E9;
                            }
                            if (!(text == "eastbay "))
                            {
                                goto IL_6E9;
                            }
                            @class = new Class51(jtoken, "eastbay.com");
                        }
                        else
                        {
                            if (!(text == "lacoste ie"))
                            {
                                goto IL_6E9;
                            }
                            @class = new Class53(jtoken, "/on/demandware.store/Sites-IE-Site/fr/");
                        }
                    }
                    else if (num != 3491784070u)
                    {
                        if (num != 3987781139u)
                        {
                            if (num != 4224345091u)
                            {
                                goto IL_6E9;
                            }
                            if (!(text == "footlocker ca"))
                            {
                                goto IL_6E9;
                            }
                            @class = new Class47(jtoken, "footlocker.ca");
                        }
                        else
                        {
                            if (!(text == "footlocker us"))
                            {
                                goto IL_6E9;
                            }
                            @class = new Class47(jtoken, "footlocker.com");
                        }
                    }
                    else
                    {
                        if (!(text == "off-white"))
                        {
                            goto IL_6E9;
                        }
                        @class = new Class48(jtoken);
                    }
IL_6FA:
                    if ([email protected]_1)
                    {
                        Class130.dictionary_0[(int)jtoken["id"]] = @class;
                        @class.vmethod_0();
                        continue;
                    }
                    continue;
IL_6E9:
                    @class = new Class52(jtoken, string_0);
                    goto IL_6FA;
                }
            }
        }
        catch
        {
        }
    }
示例#7
0
 protected internal abstract void vmethod_1(Class79 writer);
示例#8
0
 // Token: 0x06000725 RID: 1829 RVA: 0x0002DE30 File Offset: 0x0002C030
 public static bool smethod_0(object object_0, object object_1)
 {
     if (object_0 == object_1)
     {
         return(true);
     }
     if (object_0 == null || object_1 == null)
     {
         return(false);
     }
     if (!(object_0.GetType() != object_1.GetType()))
     {
         return(object_0.Equals(object_1));
     }
     if (Class23.smethod_13(object_0) && Class23.smethod_13(object_1))
     {
         return(Convert.ToDecimal(object_0, CultureInfo.CurrentCulture).Equals(Convert.ToDecimal(object_1, CultureInfo.CurrentCulture)));
     }
     return((object_0 is double || object_0 is float || object_0 is decimal) && (object_1 is double || object_1 is float || object_1 is decimal) && Class79.smethod_5(Convert.ToDouble(object_0, CultureInfo.CurrentCulture), Convert.ToDouble(object_1, CultureInfo.CurrentCulture)));
 }
示例#9
0
    // Token: 0x06001068 RID: 4200 RVA: 0x0004A810 File Offset: 0x00048A10
    private void method_5(Class191 class191_0)
    {
        switch (class191_0.Type)
        {
        case (Enum13)1:
        {
            Class195 @class = (Class195)class191_0;
            this.binaryWriter_0.Write(Convert.ToDouble(@class.Value, CultureInfo.InvariantCulture));
            return;
        }

        case (Enum13)2:
        {
            Class197 class2 = (Class197)class191_0;
            this.method_6((string)class2.Value, class2.method_4(), new int?(class2.method_2() - 4));
            return;
        }

        case (Enum13)3:
        {
            Class192 class3 = (Class192)class191_0;
            this.binaryWriter_0.Write(class3.method_2());
            foreach (Class200 class4 in class3)
            {
                this.binaryWriter_0.Write((sbyte)class4.Value.Type);
                this.method_6((string)class4.Name.Value, class4.Name.method_4(), null);
                this.method_5(class4.Value);
            }
            this.binaryWriter_0.Write(0);
            return;
        }

        case (Enum13)4:
        {
            Class193 class5 = (Class193)class191_0;
            this.binaryWriter_0.Write(class5.method_2());
            ulong num = 0UL;
            foreach (Class191 class6 in class5)
            {
                this.binaryWriter_0.Write((sbyte)class6.Type);
                this.method_6(num.ToString(CultureInfo.InvariantCulture), Class79.smethod_0(num), null);
                this.method_5(class6);
                num += 1UL;
            }
            this.binaryWriter_0.Write(0);
            return;
        }

        case (Enum13)5:
        {
            Class198 class7 = (Class198)class191_0;
            byte[]   array  = (byte[])class7.Value;
            this.binaryWriter_0.Write(array.Length);
            this.binaryWriter_0.Write((byte)class7.method_4());
            this.binaryWriter_0.Write(array);
            return;
        }

        case (Enum13)6:
        case (Enum13)10:
            return;

        case (Enum13)7:
        {
            byte[] buffer = (byte[])((Class195)class191_0).Value;
            this.binaryWriter_0.Write(buffer);
            return;
        }

        case (Enum13)8:
            this.binaryWriter_0.Write(class191_0 == Class196.class196_1);
            return;

        case (Enum13)9:
        {
            Class195 class8 = (Class195)class191_0;
            object   value;
            long     value2;
            if ((value = class8.Value) is DateTime)
            {
                DateTime dateTime_ = (DateTime)value;
                if (this.method_0() == DateTimeKind.Utc)
                {
                    dateTime_ = dateTime_.ToUniversalTime();
                }
                else if (this.method_0() == DateTimeKind.Local)
                {
                    dateTime_ = dateTime_.ToLocalTime();
                }
                value2 = Class25.smethod_9(dateTime_, false);
            }
            else
            {
                DateTimeOffset dateTimeOffset = (DateTimeOffset)class8.Value;
                value2 = Class25.smethod_7(dateTimeOffset.UtcDateTime, dateTimeOffset.Offset);
            }
            this.binaryWriter_0.Write(value2);
            return;
        }

        case (Enum13)11:
        {
            Class199 class9 = (Class199)class191_0;
            this.method_6((string)class9.Pattern.Value, class9.Pattern.method_4(), null);
            this.method_6((string)class9.Options.Value, class9.Options.method_4(), null);
            return;
        }

        case (Enum13)16:
        {
            Class195 class10 = (Class195)class191_0;
            this.binaryWriter_0.Write(Convert.ToInt32(class10.Value, CultureInfo.InvariantCulture));
            return;
        }

        case (Enum13)18:
        {
            Class195 class11 = (Class195)class191_0;
            this.binaryWriter_0.Write(Convert.ToInt64(class11.Value, CultureInfo.InvariantCulture));
            return;
        }
        }
        throw new ArgumentOutOfRangeException("t", "Unexpected token when writing BSON: {0}".smethod_0(CultureInfo.InvariantCulture, class191_0.Type));
    }
示例#10
0
 public JObject(JObject other) : base(other)
 {
     this.class79_0 = new Class79();
 }
示例#11
0
 public JObject()
 {
     this.class79_0 = new Class79();
 }
示例#12
0
    // Token: 0x060001C5 RID: 453 RVA: 0x00011098 File Offset: 0x0000F298
    public static string smethod_4(string string_0)
    {
        uint num = Class79.smethod_0(string_0);

        if (num <= 808610076u)
        {
            if (num != 133753942u)
            {
                if (num != 163471254u)
                {
                    if (num == 808610076u)
                    {
                        if (string_0 == "XXLarge")
                        {
                            return("XXL");
                        }
                    }
                }
                else if (string_0 == "Medium")
                {
                    return("M");
                }
            }
            else if (string_0 == "XSmall")
            {
                return("XS");
            }
        }
        else if (num <= 1216374316u)
        {
            if (num != 1173544642u)
            {
                if (num == 1216374316u)
                {
                    if (string_0 == "Small")
                    {
                        return("S");
                    }
                }
            }
            else if (string_0 == "XLarge")
            {
                return("XL");
            }
        }
        else if (num != 3314840116u)
        {
            if (num == 4052459348u)
            {
                if (string_0 == "Large")
                {
                    return("L");
                }
            }
        }
        else if (string_0 == "XXSmall")
        {
            return("XXS");
        }
        return(string_0);
    }
示例#13
0
    // Token: 0x060001C3 RID: 451 RVA: 0x00010B10 File Offset: 0x0000ED10
    public static bool smethod_2(string string_0, string string_1)
    {
        bool flag = true;
        uint num  = Class79.smethod_0(string_0);

        if (num <= 808610076u)
        {
            if (num != 133753942u)
            {
                if (num != 163471254u)
                {
                    if (num == 808610076u)
                    {
                        if (string_0 == "XXLarge")
                        {
                            string_0 = "2X-Large,2-xl,2-xlarge,2xl,xxl,xxlarge,extraextralarge,extra extra large,extra-extra-large,exexl,exexlarge,x-x-large,x-x-l";
                            goto IL_108;
                        }
                    }
                }
                else if (string_0 == "Medium")
                {
                    string_0 = "m,medium";
                    goto IL_108;
                }
            }
            else if (string_0 == "XSmall")
            {
                string_0 = "xs,xsmall,extrasmall,extra small,extra-small,exsmall,exs,x-small,x-s";
                goto IL_108;
            }
        }
        else if (num <= 1216374316u)
        {
            if (num != 1173544642u)
            {
                if (num == 1216374316u)
                {
                    if (string_0 == "Small")
                    {
                        string_0 = "small,s";
                        goto IL_108;
                    }
                }
            }
            else if (string_0 == "XLarge")
            {
                string_0 = "xl,xlarge,extralarge,extra large,extra-large,exl,exlarge,x-large,x-l";
                goto IL_108;
            }
        }
        else if (num != 3314840116u)
        {
            if (num == 4052459348u)
            {
                if (string_0 == "Large")
                {
                    string_0 = "l,large";
                    goto IL_108;
                }
            }
        }
        else if (string_0 == "XXSmall")
        {
            string_0 = "2x-small,2-xs,2-xsmall,2xs,xxs,xxsmall,extraextrasmall,extra extra small,extra-extra-small,exexs,exexsmall,x-x-small,x-x-s";
            goto IL_108;
        }
        flag = false;
IL_108:
        if (!flag)
        {
            return(string_0.ToLower().Split(new char[]
            {
                ','
            }).Any(new Func <string, bool>(string_1.ToLower().Contains)));
        }
        return(string_0.ToLower().Split(new char[]
        {
            ','
        }).Any(new Func <string, bool>(string_1.ToLower().Equals)));
    }
示例#14
0
    // Token: 0x060001C4 RID: 452 RVA: 0x00010C84 File Offset: 0x0000EE84
    public static string smethod_3(string string_0)
    {
        uint num = Class79.smethod_0(string_0);

        if (num <= 3365677106u)
        {
            if (num <= 2077971157u)
            {
                if (num <= 485192564u)
                {
                    if (num != 35021684u)
                    {
                        if (num != 356068251u)
                        {
                            if (num == 485192564u)
                            {
                                if (string_0 == "US 11.5")
                                {
                                    return("46");
                                }
                            }
                        }
                        else if (string_0 == "US 5.5")
                        {
                            return("38");
                        }
                    }
                    else if (string_0 == "US 4.5")
                    {
                        return("36 2/3");
                    }
                }
                else if (num <= 1455067456u)
                {
                    if (num != 806239131u)
                    {
                        if (num == 1455067456u)
                        {
                            if (string_0 == "US 8.5")
                            {
                                return("42");
                            }
                        }
                    }
                    else if (string_0 == "US 10.5")
                    {
                        return("44 2/3");
                    }
                }
                else if (num != 1807801119u)
                {
                    if (num == 2077971157u)
                    {
                        if (string_0 == "US 3.5")
                        {
                            return("35 1/3");
                        }
                    }
                }
                else if (string_0 == "US 14.5")
                {
                    return("50");
                }
            }
            else if (num <= 3249639910u)
            {
                if (num != 2882006314u)
                {
                    if (num != 3203052881u)
                    {
                        if (num == 3249639910u)
                        {
                            if (string_0 == "US 9")
                            {
                                return("42 2/3");
                            }
                        }
                    }
                    else if (string_0 == "US 7.5")
                    {
                        return("40 2/3");
                    }
                }
                else if (string_0 == "US 6.5")
                {
                    return("39 1/3");
                }
            }
            else if (num <= 3332177194u)
            {
                if (num != 3266417529u)
                {
                    if (num == 3332177194u)
                    {
                        if (string_0 == "US 13.5")
                        {
                            return("48 2/3");
                        }
                    }
                }
                else if (string_0 == "US 8")
                {
                    return("41 1/3");
                }
            }
            else if (num != 3350305624u)
            {
                if (num == 3365677106u)
                {
                    if (string_0 == "US 18")
                    {
                        return("53 1/3");
                    }
                }
            }
            else if (string_0 == "US 3")
            {
                return("34 2/3");
            }
        }
        else if (num <= 3449565201u)
        {
            if (num <= 3416009963u)
            {
                if (num != 3382454725u)
                {
                    if (num != 3399232344u)
                    {
                        if (num == 3416009963u)
                        {
                            if (string_0 == "US 17")
                            {
                                return("52 2/3");
                            }
                        }
                    }
                    else if (string_0 == "US 16")
                    {
                        return("51 1/3");
                    }
                }
                else if (string_0 == "US 19")
                {
                    return("54 2/3");
                }
            }
            else if (num <= 3432787582u)
            {
                if (num != 3417416100u)
                {
                    if (num == 3432787582u)
                    {
                        if (string_0 == "US 14")
                        {
                            return("49 1/3");
                        }
                    }
                }
                else if (string_0 == "US 7")
                {
                    return("40");
                }
            }
            else if (num != 3434193719u)
            {
                if (num == 3449565201u)
                {
                    if (string_0 == "US 15")
                    {
                        return("50 2/3");
                    }
                }
            }
            else if (string_0 == "US 6")
            {
                return("38 2/3");
            }
        }
        else if (num <= 3483120439u)
        {
            if (num <= 3466342820u)
            {
                if (num != 3450971338u)
                {
                    if (num == 3466342820u)
                    {
                        if (string_0 == "US 12")
                        {
                            return("46 2/3");
                        }
                    }
                }
                else if (string_0 == "US 5")
                {
                    return("37 1/3");
                }
            }
            else if (num != 3467748957u)
            {
                if (num == 3483120439u)
                {
                    if (string_0 == "US 13")
                    {
                        return("48");
                    }
                }
            }
            else if (string_0 == "US 4")
            {
                return("36");
            }
        }
        else if (num <= 3516675677u)
        {
            if (num != 3499898058u)
            {
                if (num == 3516675677u)
                {
                    if (string_0 == "US 11")
                    {
                        return("45 1/3");
                    }
                }
            }
            else if (string_0 == "US 10")
            {
                return("44");
            }
        }
        else if (num != 3653223761u)
        {
            if (num == 4192091159u)
            {
                if (string_0 == "US 9.5")
                {
                    return("43 1/3");
                }
            }
        }
        else if (string_0 == "US 12.5")
        {
            return("47 1/3");
        }
        return(null);
    }
示例#15
0
    public LogonResponse Initialize(string userID, string logonPassword, string serverIP, int serverPort, ICustomizeHandler customizeHandler)
    {
        if (this.emptyAgileLogger_0 == null)
        {
            if (this.string_1 == null)
            {
                this.emptyAgileLogger_0 = new EmptyAgileLogger();
            }
            else
            {
                FileAgileLogger logger = new FileAgileLogger(this.string_1)
                {
                    MaxLength4ChangeFile = 0x100000L
                };
                this.emptyAgileLogger_0 = (EmptyAgileLogger)logger;
            }
        }
        this.eventSafeTrigger_0.AgileLogger = this.emptyAgileLogger_0;
        this.string_0 = logonPassword;
        Class16 class2 = new Class16();
        MessageForbiddenHandler class3 = new MessageForbiddenHandler();

        this.object_0 = Class157.CreateInterface26((Enum6)0);
        int num = (!this.advancedOptions_0.CheckResponseTTL4Query || !this.bool_4) ? 10 : 0;

        this.class72_0 = new Class72(num, this.int_1);
        this.class72_0.SetEngine((IEngine)this.object_0);
        Interface36          interface2 = new Class94((ICommitMessageToServer)this.object_0, class3, null);
        Class79              class4     = new Class79(this.class72_0, interface2);
        BasicMessageTypeRoom room       = new BasicMessageTypeRoom();

        room.Initialize();
        CustomizeMessageTypeRoom room2 = new CustomizeMessageTypeRoom();

        room2.Initialize();
        FileMessageTypeRoom room3 = new FileMessageTypeRoom();

        room3.Initialize();
        P2PSessionMessageTypeRoom room4 = new P2PSessionMessageTypeRoom();

        room4.Initialize();
        FriendsMessageTypeRoom room5 = new FriendsMessageTypeRoom();

        room5.Initialize();
        GroupMessageTypeRoom room6 = new GroupMessageTypeRoom();

        room6.Initialize();
        ContactsMessageTypeRoom room7 = new ContactsMessageTypeRoom();

        room7.Initialize();
        this.class113_0 = new BasicOutter();
        this.class113_0.SetBasicMessageTypeRoom(room);
        this.class113_0.SetActionType(class4);
        this.class113_0.SetStreamContract(class2);
        this.class113_0.SetICommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.class113_0.NgadStsqsh += new CbGeneric(this.method_1);
        this.class113_0.method_2(userID);
        this.class71_0 = new Class71(this.class113_0, this.bool_4 ? 0 : this.int_0);
        Class78 class9 = new Class78();

        class9.method_5(this.class113_0);
        class9.method_1(room);
        class9.method_2(class2);
        class9.method_4((ICommitMessageToServer)this.object_0);
        class9.method_3(class4);
        this.class43_0 = new Class43();
        this.class43_0.method_5(class4);
        this.class43_0.method_4(class2);
        this.class43_0.method_3(room2);
        this.class43_0.method_1(userID);
        CustomizeProcess class10 = new CustomizeProcess();

        class10.SetStreamContractHelper(class2);
        class10.SetCustomizeHandler(customizeHandler);
        class10.SetCustomizeMessageTypeRoom(room2);
        class10.SetActionType(class4);
        class10.Event_0 += new CbGeneric <string, int, byte[], string>(this.OnMessageReceived);
        Class75 class7 = new Class75(class4, class2, room4);

        class7.method_1(userID);
        Class24 class8 = new Class24();

        class8.method_0(room4);
        class8.method_1(class2);
        class8.DaTyrcXefU(class7);
        this.class2_0 = new FileTransfering();
        this.class2_0.method_0(this.emptyAgileLogger_0);
        this.class13_0 = new FileHandler();
        this.class13_0.method_0(this.emptyAgileLogger_0);
        this.class2_0.TTL4ResumedFileItem = this.advancedOptions_0.TempFile4ResumedTTL;
        this.class13_0.method_1(class4);
        this.class13_0.method_3(class2);
        this.class13_0.imethod_1(0x100000);
        this.class13_0.method_7(this.advancedOptions_0.UseWorkThreadPool);
        this.class13_0.Initialize(userID, room3.FilePackageData);
        this.class28_0 = new Class28();
        this.class28_0.method_2(this.advancedOptions_0.CheckFileZeroSpeedSpanInSecs);
        this.class28_0.method_0(this.emptyAgileLogger_0);
        this.class28_0.method_13(room3);
        this.class28_0.method_14(class2);
        this.class28_0.method_16(class4);
        this.class28_0.method_12(this.class2_0);
        this.class28_0.method_11(this.class13_0);
        this.class28_0.Initialize(userID);
        Class70 class11 = new Class70();

        class11.method_0(room3);
        class11.method_1(class2);
        class11.method_3(this.class13_0);
        class11.method_2(this.class2_0);
        class11.method_4(this.class28_0);
        this.class126_0 = new FriendsOutter();
        this.class126_0.method_4(class4);
        this.class126_0.method_3(class2);
        this.class126_0.method_2(room5);
        this.class126_0.FriendOffline += new CbGeneric <string>(this.method_6);
        this.class126_0.method_1(userID);
        Class59 class12 = new Class59();

        class12.method_2(class2);
        class12.method_3(this.class126_0);
        class12.method_1(room5);
        this.class19_0 = new GroupOutter2();
        this.class19_0.method_0(class4);
        this.class19_0.uBkeyEkxPJ(class2);
        this.class19_0.Iibebiqvn1(room6);
        this.class19_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.class19_0.GroupmateOffline += new CbGeneric <string>(this.method_7);
        this.class19_0.method_4(userID);
        Class140 class13 = new Class140();

        class13.method_0(room6);
        class13.method_2(this.class19_0);
        class13.method_1(class2);
        this.ContactsOutter_0 = new ContactsOutter();
        this.ContactsOutter_0.method_2(class4);
        this.ContactsOutter_0.SetStreamContract(class2);
        this.ContactsOutter_0.SetMessageType(room7);
        this.ContactsOutter_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.ContactsOutter_0.ContactsOffline += new CbGeneric <string>(this.method_8);
        this.ContactsOutter_0.method_5(userID);
        Class20 class14 = new Class20();

        class14.SetMessageType(room7);
        class14.SetOutter(this.ContactsOutter_0);
        class14.SetStreamContract(class2);
        IProcess[] processers = new IProcess[] { class9, class10, class8, class11, class12, class13, class14 };
        this.class141_0 = new Class141(processers, this.class72_0);
        this.class141_0.method_6(this.advancedOptions_0.AsynMessageQueueEnabled && !this.bool_4);
        this.class141_0.method_7(class4);
        this.class141_0.method_4(this.emptyAgileLogger_0);
        this.class141_0.method_8();
        new Class40(new IMessageTypeRoom[] { room, room2, room3, room4, room5, room6, room7 }, this.class141_0).method_2();
        MessageDispatcher class6 = new MessageDispatcher(new Class144(new Class115(this.class141_0)), class3);

        class6.imethod_0(this.emptyAgileLogger_0);
        this.object_0.SetAgileLogger(this.emptyAgileLogger_0);
        this.object_0.Sock5ProxyInfo = this.sock5ProxyInfo_0;
        this.object_0.SetAgileIPE(new AgileIPE(serverIP, serverPort));
        this.object_0.SetStreamContract(class2);
        this.object_0.imethod_12(class6);
        this.object_0.imethod_10(GlobalUtil.MaxLengthOfMessage);
        this.object_0.AutoReconnect = false;
        this.object_0.imethod_23((this.advancedOptions_0.WriteTimeoutInSecs <= 0) ? -1 : (this.advancedOptions_0.WriteTimeoutInSecs * 0x3e8));
        this.object_0.SocketSendBuffSize           = this.advancedOptions_0.SocketSendBuffSize;
        this.object_0.UncompletedSendingCount4Busy = this.advancedOptions_0.UncompletedSendingCount4Busy;
        this.object_0.ConnectionInterrupted       += new CbGeneric(this.method_5);
        this.object_0.imethod_25(new CbGeneric(this.method_4));
        this.object_0.ConnectionRebuildStart += new CbGeneric(this.method_2);
        this.object_0.Initialize();
        LogonFullResponse response = this.class113_0.method_7(this.systemToken, this.string_0);

        if (response.LogonResult != LogonResult.Succeed)
        {
            this.object_0.OnDispose();
            return(response);
        }
        this.object_0.imethod_27();
        this.bool_0 = response.Boolean_0;
        this.bool_3 = response.GroupRelationEnabled;
        if ((this.bool_0 && this.advancedOptions_0.Boolean_0) && !this.bool_4)
        {
            if (response.UseAsP2PServer && (this.agileIPE_0 == null))
            {
                this.agileIPE_0 = new AgileIPE(this.object_0.GetAgileIPE().String_0, this.object_0.GetAgileIPE().Port + 1);
            }
            if (this.agileIPE_0 != null)
            {
                this.class58_0 = new P2PController();
                this.class58_0.method_6(this.agileIPE_0);
                this.class58_0.method_5(this.emptyAgileLogger_0);
                this.class58_0.method_3((Interface26)this.object_0);
                this.class58_0.method_2(class7);
                this.class58_0.method_4(room4);
                this.class58_0.P2PChannelClosed += new CbGeneric <P2PChannelState>(this.method_3);
                this.class58_0.method_7(userID, this.bool_2);
                interface2.imethod_2(this.class58_0);
                class8.method_2(this.class58_0);
                this.class13_0.method_4(new Class56(this.class58_0));
                this.class19_0.method_1(this.class58_0);
            }
        }
        if (this.bool_2)
        {
            this.class108_0 = new TcpPassiveEngine((Interface26)this.object_0, this.class113_0, this.emptyAgileLogger_0);
            this.class108_0.method_3();
        }
        this.class71_0.method_0();
        this.class113_0.SendHeartBeatMessage();
        this.string_3 = userID;
        this.bool_1   = true;
        this.object_0.AutoReconnect = this.bool_5;
        return(response);
    }
示例#16
0
 public JObject(object content)
 {
     this.class79_0 = new Class79();
     this.Add(content);
 }
示例#17
0
文件: Class1.cs 项目: 15831944/WW
 protected internal override void vmethod_1(Class79 writer)
 {
     throw new NotImplementedException("Write is not implemented.");
 }
示例#18
0
    // Token: 0x0600106D RID: 4205 RVA: 0x0004AC80 File Offset: 0x00048E80
    private int method_10(Class191 class191_0)
    {
        switch (class191_0.Type)
        {
        case (Enum13)1:
            return(8);

        case (Enum13)2:
        {
            Class197 @class = (Class197)class191_0;
            string   text   = (string)@class.Value;
            @class.method_5((text != null) ? Class189.utf8Encoding_0.GetByteCount(text) : 0);
            @class.method_3(this.method_9(@class.method_4(), @class.method_6()));
            return(@class.method_2());
        }

        case (Enum13)3:
        {
            Class192 class2 = (Class192)class191_0;
            int      num    = 4;
            foreach (Class200 class3 in class2)
            {
                int num2 = 1 + this.method_10(class3.Name);
                num2 += this.method_10(class3.Value);
                num  += num2;
            }
            num++;
            class2.method_3(num);
            return(num);
        }

        case (Enum13)4:
        {
            Class193 class4 = (Class193)class191_0;
            int      num3   = 4;
            ulong    num4   = 0UL;
            foreach (Class191 class191_ in class4)
            {
                num3++;
                num3 += this.method_8(Class79.smethod_0(num4));
                num3 += this.method_10(class191_);
                num4 += 1UL;
            }
            num3++;
            class4.method_3(num3);
            return(class4.method_2());
        }

        case (Enum13)5:
        {
            Class198 class5 = (Class198)class191_0;
            byte[]   array  = (byte[])class5.Value;
            class5.method_3(5 + array.Length);
            return(class5.method_2());
        }

        case (Enum13)6:
        case (Enum13)10:
            return(0);

        case (Enum13)7:
            return(12);

        case (Enum13)8:
            return(1);

        case (Enum13)9:
            return(8);

        case (Enum13)11:
        {
            Class199 class6 = (Class199)class191_0;
            int      num5   = 0 + this.method_10(class6.Pattern);
            num5 += this.method_10(class6.Options);
            class6.method_3(num5);
            return(class6.method_2());
        }

        case (Enum13)16:
            return(4);

        case (Enum13)18:
            return(8);
        }
        throw new ArgumentOutOfRangeException("t", "Unexpected token when writing BSON: {0}".smethod_0(CultureInfo.InvariantCulture, class191_0.Type));
    }