public void Write(BinaryWriter Writer) { Common.WriteWord(Writer, FMaxItems + 1); int count = 0; // goes from 1 -> attributescount - 1 while (count <= FMaxItems) { AttributeInfo Item = (AttributeInfo)FItems[count]; Item.Write(Writer); count++; } }