// Token: 0x0600130B RID: 4875 RVA: 0x000048C1 File Offset: 0x00002AC1
 internal void method_37(object object_0, Class57 class57_0)
 {
     if (this.delegate152_0 != null)
     {
         this.delegate152_0(object_0, class57_0);
     }
 }
Пример #2
0
 // Token: 0x0600023D RID: 573 RVA: 0x00004053 File Offset: 0x00002253
 internal Struct8(Class57 <T> class57_1)
 {
     this.class57_0 = class57_1;
     this.int_1     = this.class57_0.int_1;
     this.int_0     = -2;
     this.gparam_0  = default(T);
 }
Пример #3
0
    // Token: 0x06000528 RID: 1320 RVA: 0x0002C2F4 File Offset: 0x0002A4F4
    public static Type smethod_4(Type type_0, Class57 <Struct45> class57_0)
    {
        Type type = type_0;

        while (class57_0.Count > 0)
        {
            Struct45 @struct = class57_0.method_6();
            switch (@struct.int_0)
            {
            case 0:
                if (@struct.int_1 == 1)
                {
                    type = type.MakeArrayType();
                }
                else
                {
                    type = type.MakeArrayType(@struct.int_1);
                }
                break;

            case 1:
                type = type.MakePointerType();
                break;

            case 2:
                type = type.MakeByRefType();
                break;
            }
        }
        return(type);
    }
Пример #4
0
 internal Spire.Doc.CharacterCategory method_38(string A_0)
 {
     if (!string.IsNullOrEmpty(A_0))
     {
         return(Class57.smethod_9(this.Text));
     }
     return(Spire.Doc.CharacterCategory.Ascii);
 }
Пример #5
0
 private void method_40(string A_0)
 {
     if (!string.IsNullOrEmpty(A_0))
     {
         if (this.list_0 != null)
         {
             this.list_0.Clear();
             this.list_0 = null;
         }
         this.list_0  = new List <Class217>();
         this.bool_10 = Class57.smethod_6(A_0[0]) == Spire.Doc.CharacterCategory.FarEast;
         this.bool_11 = Class57.smethod_6(A_0[A_0.Length - 1]) == Spire.Doc.CharacterCategory.FarEast;
         Class217 item   = new Class217();
         bool     flag   = false;
         bool     flag2  = false;
         int      num    = 0;
         int      length = A_0.Length;
         while (num < length)
         {
             flag = Class57.smethod_10(A_0[num]);
             if ((num + 1) >= length)
             {
                 flag2 = false;
             }
             else
             {
                 flag2 = Class57.smethod_10(A_0[num + 1]);
             }
             if (!item.method_2().HasValue&& flag)
             {
                 item.method_3(new int?(num));
                 item.method_7(num == 0);
                 item.method_11(Class57.smethod_11(A_0[num]));
             }
             if (item.method_2().HasValue&& !flag2)
             {
                 item.method_1(new int?(num));
                 item.method_5((num + 1) == length);
                 item.method_9(Class57.smethod_11(A_0[num]));
             }
             if (item.method_2().HasValue&& item.method_0().HasValue)
             {
                 this.LetterOrDigitPosition.Add(item);
                 item = new Class217();
             }
             num++;
         }
     }
 }
Пример #6
0
        public static void PlayerWarp(NetUser netUser, UserData user, WorldZone moveZone)
        {
            Class57 class2 = new Class57 {
                netUser_0   = netUser,
                worldZone_0 = moveZone
            };
            EventTimer timer = Events.Timer.Find(new Predicate <EventTimer>(class2.method_0));

            if (timer != null)
            {
                timer.Dispose();
            }
            if (class2.netUser_0 != null)
            {
                int num = UnityEngine.Random.Range(0, class2.worldZone_0.WarpZone.Spawns.Count);
                Helper.TeleportTo(class2.netUser_0, class2.worldZone_0.WarpZone.Spawns[num]);
                Broadcast.Notice(class2.netUser_0, "☢", Config.GetMessageTeleport("Player.WarpZone.Teleported", class2.netUser_0, class2.worldZone_0, null), 2f);
            }
        }
Пример #7
0
        private void method_43(ParagraphItemCollection A_0, string A_1, int A_2)
        {
            int num = 15;

            if (this.dictionary_0 == null)
            {
                this.dictionary_0 = new Dictionary <string, TextRange>();
            }
            string    key   = A_1 + BookmarkStart.b("樴", num) + A_2;
            TextRange range = null;

            if (this.dictionary_0.ContainsKey(key))
            {
                range = this.dictionary_0[key];
            }
            else
            {
                range = new TextRange(base.Document);
                range.CharacterFormat.ApplyBase(this.CharacterFormat);
                range.method_0(base.Owner);
                range.characterCategory_0 = this.CharacterCategory;
                range.StartPos            = A_2;
                range.int_4       = A_1.Length;
                range.string_9    = A_1;
                range.string_8    = A_1;
                range.textRange_0 = this;
                if (!string.IsNullOrEmpty(A_1))
                {
                    range.bool_12 = Class57.smethod_11(A_1[0]);
                    range.bool_13 = Class57.smethod_11(A_1[A_1.Length - 1]);
                    range.bool_14 = Class57.smethod_12(A_1[0]);
                    range.bool_15 = Class57.smethod_12(A_1[A_1.Length - 1]);
                    range.bool_10 = Class57.smethod_6(A_1[0]) == Spire.Doc.CharacterCategory.FarEast;
                    range.bool_11 = Class57.smethod_6(A_1[A_1.Length - 1]) == Spire.Doc.CharacterCategory.FarEast;
                }
                this.dictionary_0.Add(key, range);
            }
            A_0.InnerList.Add(range);
        }
Пример #8
0
        internal List <Class216> method_32()
        {
            List <Class216> list = new List <Class216>();

            if (this.CharacterCategory == Spire.Doc.CharacterCategory.FarEast)
            {
                int num    = 0;
                int length = this.Text.Length;
                while (num < length)
                {
                    char ch = this.Text[num];
                    if ((Class57.smethod_6(ch) != Spire.Doc.CharacterCategory.Ascii) && Class203.smethod_1(ch))
                    {
                        Class216 item = new Class216(num, ch, false);
                        item.method_9(this);
                        list.Add(item);
                    }
                    num++;
                }
            }
            return(list);
        }
Пример #9
0
    // Token: 0x060001E7 RID: 487 RVA: 0x000123E0 File Offset: 0x000105E0
    private static Interface5 smethod_1()
    {
        Interface5 result;

        try
        {
            Class173 @class = new Class173();
            if (!Class57.smethod_3(@class))
            {
                @class.Dispose();
                result = null;
            }
            else
            {
                result = @class;
            }
        }
        catch (Exception exception_) when(!Class57.smethod_2(exception_))
        {
            result = null;
        }
        return(result);
    }
Пример #10
0
        protected internal override void vmethod_0(Class80 reader)
        {
            Class74 stream       = reader.Stream;
            int     hmetricCount = reader.method_5().HMetricCount;
            int     glyphCount   = reader.method_4().GlyphCount;
            int     capacity     = glyphCount > hmetricCount ? glyphCount : hmetricCount;

            this.ilist_0 = (IList <Class57>) new List <Class57>(capacity);
            for (int index = 0; index < hmetricCount; ++index)
            {
                this.ilist_0.Add(new Class57(stream.method_8(), stream.method_4()));
            }
            if (hmetricCount >= capacity)
            {
                return;
            }
            Class57 class57 = this.ilist_0[this.ilist_0.Count - 1];

            for (int index = hmetricCount; index < glyphCount; ++index)
            {
                this.ilist_0.Add(new Class57(class57.AdvanceWidth, stream.method_4()));
            }
        }
Пример #11
0
    // Token: 0x06000526 RID: 1318 RVA: 0x0002C0D8 File Offset: 0x0002A2D8
    public static Class57 <Struct45> smethod_2(Type type_0)
    {
        Class57 <Struct45> @class = new Class57 <Struct45>();
        Type type = type_0;

        for (;;)
        {
            if (type.IsArray)
            {
                @class.method_7(new Struct45
                {
                    int_0 = 0,
                    int_1 = type.GetArrayRank()
                });
            }
            else if (type.IsByRef)
            {
                @class.method_7(new Struct45
                {
                    int_0 = 2
                });
            }
            else
            {
                if (!type.IsPointer)
                {
                    break;
                }
                @class.method_7(new Struct45
                {
                    int_0 = 1
                });
            }
            type = type.GetElementType();
        }
        return(@class);
    }
Пример #12
0
    private int method_13(string A_0)
    {
        int num3;

        if (string.IsNullOrEmpty(A_0) || (A_0.Length <= 0))
        {
            return(-1);
        }
        int num = 0;
        CharacterCategory ascii = CharacterCategory.Ascii;

        using (IEnumerator enumerator = new Class1087(A_0).System.Collections.IEnumerable.GetEnumerator())
        {
            while (enumerator.MoveNext())
            {
                int current = (int)enumerator.Current;
                if ((current < 0x10000) || (current > 0x10ffff))
                {
                    if (num == 0)
                    {
                        ascii = Class57.smethod_7(current);
                    }
                    if ((num > 0) && (Class57.smethod_7(current) != ascii))
                    {
                        goto Label_006E;
                    }
                    num++;
                }
            }
            return(-1);

Label_006E:
            num3 = num - 1;
        }
        return(num3);
    }
Пример #13
0
    object ParagraphBase.CloneImpl()
    {
        Class6 class2 = base.CloneImpl() as Class6;

        if (base.m_charFormat != null)
        {
            class2.method_45().ImportContainer(base.m_charFormat);
        }
        if (class2.stream_0 != null)
        {
            class2.stream_0 = Class57.smethod_16(this.stream_0 as MemoryStream);
        }
        class2.dictionary_0 = new Dictionary <string, DictionaryEntry>();
        if (this.dictionary_0 != null)
        {
            foreach (string str in this.dictionary_0.Keys)
            {
                DictionaryEntry entry  = this.dictionary_0[str];
                DictionaryEntry entry2 = new DictionaryEntry((string)entry.Key, (string)entry.Value);
                class2.method_41().Add(str, entry2);
            }
        }
        return(class2);
    }
Пример #14
0
 private void method_110()
 {
     if (!this.paragraph_0.ListFormat.IsEmptyList && (!this.paragraph_0.SectionEndMark || !string.IsNullOrEmpty(this.paragraph_0.Text)))
     {
         ListFormat     listFormatForApplyStyle = this.paragraph_0.GetListFormatForApplyStyle();
         ParagraphStyle paraStyle = this.paragraph_0.ParaStyle;
         if ((listFormatForApplyStyle != null) && (listFormatForApplyStyle.CurrentListStyle != null))
         {
             ListStyle currentListStyle = listFormatForApplyStyle.CurrentListStyle;
             base.method_14(0);
             if (listFormatForApplyStyle.HasKey(0))
             {
                 base.method_14(listFormatForApplyStyle.ListLevelNumber);
             }
             ListLevel overrideListLevel = (currentListStyle.Levels.Count > 0) ? currentListStyle.GetNearLevel(base.method_13()) : null;
             if (overrideListLevel != null)
             {
                 Class12 class2 = null;
                 if ((listFormatForApplyStyle.LFOStyleName != null) && (listFormatForApplyStyle.LFOStyleName.Length > 0))
                 {
                     class2 = (this.method_108() as Document).ListOverrides.method_35(listFormatForApplyStyle.LFOStyleName);
                 }
                 if (((class2 != null) && class2.method_23().method_11(base.method_13())) && class2.method_23().method_5(base.method_13()).OverrideFormatting)
                 {
                     overrideListLevel = class2.method_23().method_5(base.method_13()).OverrideListLevel;
                 }
                 if ((currentListStyle.ListType == ListType.Numbered) || (currentListStyle.ListType == ListType.Bulleted))
                 {
                     if (overrideListLevel.ParagraphFormat.HasKey(0x488))
                     {
                         base.Interface22.imethod_1().method_1((double)overrideListLevel.ParagraphFormat.LeftIndent);
                     }
                     if (((this.paragraph_0.ListFormat.ListType == ListType.NoList) && !this.paragraph_0.ListFormat.HasKey(1)) && (paraStyle.ParagraphFormat.HasKey(0x488) || ((paraStyle.ParagraphFormat.LeftIndent != 0f) && (paraStyle.ParagraphFormat.LeftIndent != overrideListLevel.ParagraphFormat.LeftIndent))))
                     {
                         base.Interface22.imethod_1().method_1((double)paraStyle.ParagraphFormat.LeftIndent);
                     }
                     else if ((((this.paragraph_0.ListFormat.ListType != ListType.NoList) && !this.paragraph_0.ListFormat.HasKey(1)) && paraStyle.ListFormat.HasKey(1)) && (paraStyle.ParagraphFormat.HasKey(0x488) || !overrideListLevel.ParagraphFormat.HasKey(0x488)))
                     {
                         base.Interface22.imethod_1().method_1((double)paraStyle.ParagraphFormat.LeftIndent);
                     }
                     if (this.paragraph_0.Format.HasKey(0x488))
                     {
                         base.Interface22.imethod_1().method_1((double)this.paragraph_0.Format.LeftIndent);
                     }
                     if (overrideListLevel.ParagraphFormat.HasKey(0x492))
                     {
                         base.method_20(overrideListLevel.ParagraphFormat.FirstLineIndent);
                     }
                     if (((this.paragraph_0.ListFormat.ListType == ListType.NoList) && !this.paragraph_0.ListFormat.HasKey(1)) && (paraStyle.ParagraphFormat.HasKey(0x492) || ((paraStyle.ParagraphFormat.FirstLineIndent != 0f) && (paraStyle.ParagraphFormat.FirstLineIndent != overrideListLevel.ParagraphFormat.FirstLineIndent))))
                     {
                         base.method_20(paraStyle.ParagraphFormat.FirstLineIndent);
                     }
                     else if ((((this.paragraph_0.ListFormat.ListType != ListType.NoList) && !this.paragraph_0.ListFormat.HasKey(1)) && paraStyle.ListFormat.HasKey(1)) && (paraStyle.ParagraphFormat.HasKey(0x492) || !overrideListLevel.ParagraphFormat.HasKey(0x492)))
                     {
                         base.method_20(paraStyle.ParagraphFormat.FirstLineIndent);
                     }
                     if (this.paragraph_0.Format.HasKey(0x492))
                     {
                         base.method_20(this.paragraph_0.Format.FirstLineIndent);
                     }
                     if (((base.method_19() < 0f) && (base.Interface22.imethod_1().method_0() == 0.0)) && (!this.paragraph_0.Format.HasValue(0x488) && !paraStyle.ParagraphFormat.HasValue(0x488)))
                     {
                         base.Interface22.imethod_1().method_1((double)Math.Abs(base.method_19()));
                     }
                 }
                 base.method_72(new CharacterFormat(this.method_108()));
                 this.method_114(overrideListLevel.CharacterFormat, base.method_71());
                 base.method_71().ApplyBase(this.paragraph_0.BreakCharacterFormat);
                 base.method_66((this.method_108() as Document).method_133(this.paragraph_0, listFormatForApplyStyle, overrideListLevel, (LocaleIDs)base.method_71().LocaleIdASCII));
                 this.paragraph_0.ListText = base.method_65();
                 base.method_68(Class57.smethod_9(base.method_65()));
                 if (!overrideListLevel.IsEmptyPicture && (overrideListLevel.PicBullet != null))
                 {
                     base.method_46(true);
                     base.method_80(overrideListLevel.PicBullet);
                 }
                 if (overrideListLevel.FollowCharacter == FollowCharacterType.Tab)
                 {
                     this.method_112(overrideListLevel);
                 }
                 else
                 {
                     this.method_111(overrideListLevel);
                 }
                 base.method_76(overrideListLevel.NumberAlignment);
             }
             if ((((overrideListLevel.StartAt == 0) && (currentListStyle.ListType == ListType.Numbered)) && (string.IsNullOrEmpty(overrideListLevel.LevelText) && string.IsNullOrEmpty(overrideListLevel.NumberPrefix))) && (string.IsNullOrEmpty(overrideListLevel.NumberPrefix) && string.IsNullOrEmpty(overrideListLevel.BulletCharacter)))
             {
                 base.method_66(string.Empty);
             }
             listFormatForApplyStyle.Close();
         }
     }
 }
 // Token: 0x060020C8 RID: 8392 RVA: 0x0000D5A9 File Offset: 0x0000B7A9
 private void method_9(object sender, Class57 e)
 {
     this.method_6();
 }
Пример #16
0
    private static void smethod_3(Class582 A_0, ArrayList A_1, Hashtable A_2, Dictionary <string, string> A_3, Dictionary <string, string> A_4)
    {
        int             num            = 3;
        StyleCollection styles         = A_0.Interface50.imethod_0().Styles;
        Class394        class2         = A_0.imethod_1();
        StyleType       paragraphStyle = StyleType.ParagraphStyle;
        string          str            = null;
        bool            flag           = false;

        while (class2.method_19())
        {
            string str6 = class2.method_1();
            if (str6 != null)
            {
                if (str6 != BookmarkStart.b("崨刪崬䨮", num))
                {
                    if (!(str6 == BookmarkStart.b("䴨个䬬丮䐰弲䄴", num)))
                    {
                        if (str6 == BookmarkStart.b("娨弪听䌮吰稲儴", num))
                        {
                            str = class2.method_3();
                        }
                    }
                    else
                    {
                        flag = class2.method_63();
                    }
                }
                else
                {
                    paragraphStyle = Class911.smethod_8(class2.method_3());
                }
            }
        }
        if (paragraphStyle == StyleType.ListStyle)
        {
            MemoryStream stream = new MemoryStream();
            XmlWriter    writer = Class57.smethod_19(stream, Encoding.UTF8);
            writer.WriteNode(class2.method_8(), false);
            writer.Flush();
        }
        else
        {
            Style style = Style.smethod_1(paragraphStyle, A_0.Interface50.imethod_0()) as Style;
            if (!string.IsNullOrEmpty(str))
            {
                style.method_5(str);
            }
            Class801 class3 = new Class801(style);
            string   str3   = null;
            while (class2.method_9(BookmarkStart.b("娨弪听䌮吰", num)))
            {
                string str2;
                string str5;
                string str7;
                string key = class2.method_1();
                if (key != null)
                {
                    int num2;
                    if (Class1160.dictionary_223 == null)
                    {
                        Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x10);
                        dictionary1.Add(BookmarkStart.b("䜨䨪䀬䨮", num), 0);
                        dictionary1.Add(BookmarkStart.b("䠨䜪䐬丮䈰嘲䘴", num), 1);
                        dictionary1.Add(BookmarkStart.b("䬨䨪帬䨮唰簲嬴", num), 2);
                        dictionary1.Add(BookmarkStart.b("䜨个唬嬮", num), 3);
                        dictionary1.Add(BookmarkStart.b("䔨䈪䌬䐮", num), 4);
                        dictionary1.Add(BookmarkStart.b("䠨帪夬䀮挰嘲儴制弸刺匼娾", num), 5);
                        dictionary1.Add(BookmarkStart.b("䄨䈪䤬䬮吰崲", num), 6);
                        dictionary1.Add(BookmarkStart.b("娨个䀬䘮礰娲儴匶尸唺", num), 7);
                        dictionary1.Add(BookmarkStart.b("䔨䐪丬䐮吰圲", num), 8);
                        dictionary1.Add(BookmarkStart.b("夨个弬尮帰崲吴嬶", num), 9);
                        dictionary1.Add(BookmarkStart.b("夨个弬尮帰崲吴嬶稸吺值伾⹀あ⁄", num), 10);
                        dictionary1.Add(BookmarkStart.b("夨个弬尮帰崲吴嬶欸帺䴼匾㡀", num), 11);
                        dictionary1.Add(BookmarkStart.b("嬨堪䐬䬮", num), 12);
                        dictionary1.Add(BookmarkStart.b("夨笪弬", num), 13);
                        dictionary1.Add(BookmarkStart.b("嬨笪弬", num), 14);
                        dictionary1.Add(BookmarkStart.b("尨䈪挬丮尰嘲", num), 15);
                        Class1160.dictionary_223 = dictionary1;
                    }
                    if (Class1160.dictionary_223.TryGetValue(key, out num2))
                    {
                        switch (num2)
                        {
                        case 0:
                            goto Label_02A7;

                        case 1:
                        {
                            str3 = class2.method_28();
                            continue;
                        }

                        case 2:
                        {
                            if (style.Name.ToLower() != BookmarkStart.b("䜨䐪弬䈮倰弲", num))
                            {
                                str5 = class2.method_28();
                                if (A_0.Interface50.imethod_0().StyleNameIds.ContainsKey(str5))
                                {
                                    goto Label_0345;
                                }
                                A_3.Add(style.StyleId, str5);
                            }
                            continue;
                        }

                        case 3:
                        {
                            style.NextStyle = class2.method_28();
                            continue;
                        }

                        case 4:
                        {
                            str2 = class2.method_28();
                            if (!A_0.Interface50.imethod_0().StyleNameIds.ContainsKey(str2))
                            {
                                goto Label_03EB;
                            }
                            style.LinkStyle = A_0.Interface50.imethod_0().StyleNameIds[str2];
                            continue;
                        }

                        case 5:
                        {
                            style.AutomaticallyUpdate = class2.method_31();
                            continue;
                        }

                        case 6:
                        {
                            style.Hidden = class2.method_31();
                            continue;
                        }

                        case 7:
                        {
                            style.IsSemiHidden = class2.method_31();
                            continue;
                        }

                        case 8:
                        {
                            style.Locked = class2.method_31();
                            continue;
                        }

                        case 9:
                        {
                            style.Personal = class2.method_31();
                            continue;
                        }

                        case 10:
                        {
                            style.PersonalCompose = class2.method_31();
                            continue;
                        }

                        case 11:
                        {
                            style.PersonalReply = class2.method_31();
                            continue;
                        }

                        case 12:
                        {
                            int num3 = Class114.smethod_7(class2.method_28());
                            if (num3 != -2147483648)
                            {
                                style.Rsid = num3;
                            }
                            continue;
                        }

                        case 13:
                        {
                            Class924.smethod_0(A_0, style.ParaPr, style.CharacterFormat);
                            continue;
                        }

                        case 14:
                        {
                            Class733.smethod_0(A_0, style.CharacterFormat);
                            continue;
                        }

                        case 15:
                        {
                            continue;
                        }
                        }
                    }
                }
                goto Label_04DE;
Label_02A7:
                str7 = class2.method_28();
                if (Class567.smethod_16(str7))
                {
                    Class1145.smethod_0(str7, styles, false, style);
                    if (!Class567.smethod_16(str))
                    {
                        str = str7;
                    }
                    A_0.Interface58.imethod_1(str, style.Istd);
                }
                continue;
Label_0345:
                if (A_0.Interface50.imethod_0().Styles.FindByName(A_0.Interface50.imethod_0().StyleNameIds[str5]) == null)
                {
                    A_3.Add(style.StyleId, str5);
                }
                else
                {
                    style.ApplyBaseStyle(A_0.Interface50.imethod_0().StyleNameIds[str5]);
                }
                continue;
Label_03EB:
                if (A_4.ContainsKey(style.StyleId))
                {
                    A_4[style.StyleId] = str2;
                }
                else
                {
                    A_4.Add(style.StyleId, str2);
                }
                continue;
Label_04DE:
                smethod_6(A_0, style);
            }
            string[] strArray = null;
            if (str3 != null)
            {
                strArray = str3.Split(new char[] { ',' });
            }
            if (!string.IsNullOrEmpty(str) && !A_0.Interface50.imethod_0().StyleNameIds.ContainsKey(str))
            {
                A_0.Interface50.imethod_0().StyleNameIds.Add(str, style.Name);
            }
            if (Class567.smethod_16(style.Name))
            {
                if (styles.method_9(style.StyleId) == null)
                {
                    styles.method_7(style, strArray);
                    if (flag && (paragraphStyle == StyleType.ParagraphStyle))
                    {
                        styles.DefaultParaStyle = style as ParagraphStyle;
                    }
                }
                A_1.Add(class3);
            }
        }
    }
Пример #17
0
 // Token: 0x060001E6 RID: 486 RVA: 0x00003C4C File Offset: 0x00001E4C
 public static Interface5 smethod_0()
 {
     return(Class57.smethod_1() ?? new Class9());
 }
Пример #18
0
        // Token: 0x06001459 RID: 5209 RVA: 0x000250E8 File Offset: 0x000232E8
        public void PlayStateChange(int NewState)
        {
            Class57 class57_ = new Class57(NewState);

            this.class24_0.method_37(this.class24_0, class57_);
        }
Пример #19
0
    // Token: 0x06000527 RID: 1319 RVA: 0x0002C16C File Offset: 0x0002A36C
    public static Class57 <Struct45> smethod_3(string string_0)
    {
        string             text   = string_0;
        Class57 <Struct45> @class = new Class57 <Struct45>();

        for (;;)
        {
            if (text.EndsWith(Class185.smethod_0(537697202), StringComparison.Ordinal))
            {
                @class.method_7(new Struct45
                {
                    int_0 = 2
                });
                text = text.Substring(0, text.Length - 1);
            }
            else if (text.EndsWith(Class185.smethod_0(537697194), StringComparison.Ordinal))
            {
                @class.method_7(new Struct45
                {
                    int_0 = 1
                });
                text = text.Substring(0, text.Length - 1);
            }
            else if (text.EndsWith(Class185.smethod_0(537697186), StringComparison.Ordinal))
            {
                @class.method_7(new Struct45
                {
                    int_0 = 0,
                    int_1 = 1
                });
                text = text.Substring(0, text.Length - 2);
            }
            else
            {
                if (!text.EndsWith(Class185.smethod_0(537697243), StringComparison.Ordinal))
                {
                    return(@class);
                }
                int num  = 1;
                int num2 = -1;
                for (int i = text.Length - 2; i >= 0; i--)
                {
                    char c = text[i];
                    if (c != ',')
                    {
                        if (c != '[')
                        {
                            goto Block_5;
                        }
                        num2 = i;
                        i    = -1;
                    }
                    else
                    {
                        num++;
                    }
                }
                if (num2 < 0)
                {
                    goto IL_159;
                }
                text = text.Substring(0, num2);
                @class.method_7(new Struct45
                {
                    int_0 = 0,
                    int_1 = num
                });
            }
        }
Block_5:
        throw new InvalidOperationException(Class185.smethod_0(537697236));
IL_159:
        throw new InvalidOperationException(Class185.smethod_0(537697218));
    }