예제 #1
0
파일: TypeInf.cs 프로젝트: Xamarui/BTDB
 public TypeInf(AbstractBufferedReader reader, IFieldHandlerFactory fieldHandlerFactory)
 {
     _type = null;
     _name = reader.ReadString();
     var methodCount = reader.ReadVUInt32();
     _methodInfs = new MethodInf[methodCount];
     for (int i = 0; i < methodCount; i++)
     {
         _methodInfs[i] = new MethodInf(reader, fieldHandlerFactory);
     }
     var properyCount = reader.ReadVUInt32();
     _propertyInfs = new PropertyInf[properyCount];
     for (int i = 0; i < properyCount; i++)
     {
         PropertyInfs[i] = new PropertyInf(reader, fieldHandlerFactory);
     }
 }
예제 #2
0
        public TypeInf(AbstractBufferedReader reader, IFieldHandlerFactory fieldHandlerFactory)
        {
            _type = null;
            _name = reader.ReadString();
            var methodCount = reader.ReadVUInt32();

            _methodInfs = new MethodInf[methodCount];
            for (int i = 0; i < methodCount; i++)
            {
                _methodInfs[i] = new MethodInf(reader, fieldHandlerFactory);
            }
            var properyCount = reader.ReadVUInt32();

            _propertyInfs = new PropertyInf[properyCount];
            for (int i = 0; i < properyCount; i++)
            {
                PropertyInfs[i] = new PropertyInf(reader, fieldHandlerFactory);
            }
        }