text: public PaletteRecord(RecordInputStream in1){short field_1_numcolors = in1.ReadShort();field_2_colors = new List<PColor>(field_1_numcolors);for (int k = 0; k < field_1_numcolors; k++){field_2_colors.Add(new PColor(in1));}}