public static void WritePropertyArray(BinaryWriter writer, BVPropertyCollection data) { data.Properties.ForEach(dr => { WriteProperty(writer, dr); }); }
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); }