예제 #1
0
파일: Class48.cs 프로젝트: 15831944/WW
        public void Read(Class889 r)
        {
            ushort num1 = r.vmethod_6();

            this.list_0.Capacity = (int)num1;
            for (int index = 0; index < (int)num1; ++index)
            {
                this.list_0.Add(r.vmethod_14());
            }
            ushort num2 = r.vmethod_6();

            this.list_2.Capacity = (int)num2;
            for (int index = 0; index < (int)num2; ++index)
            {
                Class986 class986 = new Class986();
                class986.Read(r);
                this.list_2.Add(class986);
            }
        }
예제 #2
0
파일: Class48.cs 프로젝트: 15831944/WW
        public void Read(DxfReader r)
        {
            if (r.CurrentGroup.Code != 0 || r.CurrentGroup.Value as string != "ACDSSCHEMA")
            {
                throw new Exception("Unexpected group.");
            }
            r.method_85();
            while (r.CurrentGroup.Code != 0 && (r.CurrentGroup.Code != 2 && r.CurrentGroup != Struct18.struct18_0))
            {
                switch (r.CurrentGroup.Code)
                {
                case 1:
                    this.Name = (string)r.CurrentGroup.Value;
                    r.method_85();
                    continue;

                case 2:
                    Class986 class986 = new Class986();
                    class986.Read(r);
                    this.list_2.Add(class986);
                    continue;

                case 90:
                    this.uint_0 = (uint)(int)r.CurrentGroup.Value;
                    r.method_85();
                    continue;

                case 101:
                    Class360 class360 = new Class360();
                    class360.Read(r);
                    this.list_1.Add(class360);
                    continue;

                default:
                    r.method_85();
                    continue;
                }
            }
        }