コード例 #1
0
 public static void WritePropertyArray(BinaryWriter writer, BVPropertyCollection data)
 {
     data.Properties.ForEach(dr =>
     {
         WriteProperty(writer, dr);
     });
 }
コード例 #2
0
        public static BVPropertyCollection ReadPropertyArray(BinaryReader reader)
        {
            BVPropertyCollection Values = new BVPropertyCollection();
            byte ReadByte = 0x00;

            while ((ReadByte = reader.ReadByte()) != 0x08)
            {
                //Values.Add(ReadProperty(reader));
                Values.Add(ReadProperty(ReadByte, reader));
            }
            //reader.ReadByte();
            return(Values);
        }