internal void method_10(Class434 or, Class259 ob)
        {
            Interface30 objectBitStream = or.ObjectBitStream;
            int         num             = objectBitStream.imethod_11();

            for (int index = 0; index < num; ++index)
            {
                MLeader.LeaderNode leaderNode = new MLeader.LeaderNode();
                leaderNode.Read(or);
                this.list_0.Add(leaderNode);
            }
            this.double_0          = objectBitStream.imethod_8();
            this.point3D_0         = objectBitStream.imethod_39();
            this.double_1          = objectBitStream.imethod_8();
            this.double_2          = objectBitStream.imethod_8();
            this.double_3          = objectBitStream.imethod_8();
            this.textAttachment_0  = (MLeader.TextAttachment)objectBitStream.imethod_14();
            this.textAttachment_1  = (MLeader.TextAttachment)objectBitStream.imethod_14();
            this.textAlignment_0   = (MLeader.TextAlignment)objectBitStream.imethod_14();
            this.blockAttachment_0 = (MLeader.BlockAttachment)objectBitStream.imethod_14();
            this.bool_1            = objectBitStream.imethod_6();
            if (this.bool_1)
            {
                MLeader.ContentText contentText = new MLeader.ContentText();
                contentText.Read(or);
                this.content_0 = (MLeader.Content)contentText;
            }
            else
            {
                this.bool_2 = objectBitStream.imethod_6();
                if (this.bool_2)
                {
                    MLeader.ContentBlock contentBlock = new MLeader.ContentBlock();
                    contentBlock.Read(or);
                    this.content_0 = (MLeader.Content)contentBlock;
                }
            }
            this.point3D_1  = objectBitStream.imethod_39();
            this.vector3D_0 = objectBitStream.imethod_51();
            this.vector3D_1 = objectBitStream.imethod_51();
            this.bool_3     = objectBitStream.imethod_6();
            if (or.Builder.Version <= DxfVersion.Dxf21)
            {
                return;
            }
            this.textAttachment_3 = (MLeader.TextAttachment)objectBitStream.imethod_14();
            this.textAttachment_2 = (MLeader.TextAttachment)objectBitStream.imethod_14();
        }
        internal void method_11(DxfReader r, Class259 objectBuilder, bool readBrackets)
        {
            if (readBrackets)
            {
                if (r.CurrentGroup.Code == 300)
                {
                    if ((string)r.CurrentGroup.Value != "CONTEXT_DATA{")
                    {
                        throw new Exception("Expected CONTEXT_DATA{, but got " + r.CurrentGroup.Value + " instead.");
                    }
                    r.method_85();
                }
                else
                {
                    readBrackets = false;
                }
            }
            while (true)
            {
                bool flag;
                do
                {
                    Struct18 currentGroup = r.CurrentGroup;
                    if (r.CurrentGroup.Code != 301 || !((string)r.CurrentGroup.Value == "}"))
                    {
                        flag = true;
                        switch (r.CurrentGroup.Code)
                        {
                        case 10:
                            this.point3D_0.X = (double)r.CurrentGroup.Value;
                            break;

                        case 20:
                            this.point3D_0.Y = (double)r.CurrentGroup.Value;
                            break;

                        case 30:
                            this.point3D_0.Z = (double)r.CurrentGroup.Value;
                            break;

                        case 40:
                            this.double_0 = (double)r.CurrentGroup.Value;
                            break;

                        case 41:
                            this.double_1 = (double)r.CurrentGroup.Value;
                            break;

                        case 110:
                            this.point3D_1.X = (double)r.CurrentGroup.Value;
                            break;

                        case 111:
                            this.vector3D_0.X = (double)r.CurrentGroup.Value;
                            break;

                        case 112:
                            this.vector3D_1.X = (double)r.CurrentGroup.Value;
                            break;

                        case 120:
                            this.point3D_1.Y = (double)r.CurrentGroup.Value;
                            break;

                        case 121:
                            this.vector3D_0.Y = (double)r.CurrentGroup.Value;
                            break;

                        case 122:
                            this.vector3D_1.Y = (double)r.CurrentGroup.Value;
                            break;

                        case 130:
                            this.point3D_1.Z = (double)r.CurrentGroup.Value;
                            break;

                        case 131:
                            this.vector3D_0.Z = (double)r.CurrentGroup.Value;
                            break;

                        case 132:
                            this.vector3D_1.Z = (double)r.CurrentGroup.Value;
                            break;

                        case 140:
                            this.double_2 = (double)r.CurrentGroup.Value;
                            break;

                        case 145:
                            this.double_3 = (double)r.CurrentGroup.Value;
                            break;

                        case 174:
                            this.textAttachment_0 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                            break;

                        case 175:
                            this.textAttachment_1 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                            break;

                        case 176:
                            this.textAlignment_0 = (MLeader.TextAlignment)r.CurrentGroup.Value;
                            break;

                        case 177:
                            this.blockAttachment_0 = (MLeader.BlockAttachment)r.CurrentGroup.Value;
                            break;

                        case 272:
                            this.textAttachment_3 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                            break;

                        case 273:
                            this.textAttachment_2 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                            break;

                        case 290:
                            this.bool_1 = (bool)r.CurrentGroup.Value;
                            if (this.bool_1)
                            {
                                r.method_85();
                                MLeader.ContentText contentText = new MLeader.ContentText();
                                contentText.Read(r, 296);
                                flag           = false;
                                this.content_0 = (MLeader.Content)contentText;
                                break;
                            }
                            break;

                        case 296:
                            this.bool_2 = (bool)r.CurrentGroup.Value;
                            if (this.bool_2)
                            {
                                r.method_85();
                                MLeader.ContentBlock contentBlock = new MLeader.ContentBlock();
                                contentBlock.Read(r);
                                flag           = false;
                                this.content_0 = (MLeader.Content)contentBlock;
                                break;
                            }
                            break;

                        case 297:
                            this.bool_3 = (bool)r.CurrentGroup.Value;
                            break;

                        case 302:
                            if ((string)r.CurrentGroup.Value == "LEADER{")
                            {
                                MLeader.LeaderNode leaderNode = new MLeader.LeaderNode();
                                r.method_85();
                                leaderNode.Read(r);
                                this.list_0.Add(leaderNode);
                                break;
                            }
                            break;
                        }
                    }
                    else
                    {
                        goto label_39;
                    }
                }while (!flag);
                r.method_85();
            }
            label_39 :;
        }