示例#1
0
        static KeyValuePair <PropertyType, BaseProperty> ReadProperty(BinaryReader reader)
        {
            var          key      = (PropertyType)reader.ReadUInt32();
            BaseProperty property = new BaseProperty();

            property.Unpack(reader);
            return(new KeyValuePair <PropertyType, BaseProperty>(key, property));
        }
        override public void Unpack(BinaryReader reader)
        {
            Value.Clear();
            uint count = reader.ReadUInt32();

            for (int i = 0; i < count; i++)
            {
                BaseProperty prop = new BaseProperty();
                prop.Unpack(reader);
                Value.Add(prop);
            }
        }