public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[PALETTE]\n");buffer.append("  numcolors     = ").append(_colors.size()).append('\n');for (int i = 0; i < _colors.size(); i++) {PColor c = _colors.get(i);buffer.append("* colornum      = ").append(i).append('\n');buffer.append(c);buffer.append("");}}
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[PALETTE]\n");buffer.Append("  numcolors     = ").Append(field_2_colors.Count).Append('\n');for (int k = 0; k < field_2_colors.Count; k++){PColor c = (PColor)field_2_colors[k];buffer.Append("* colornum      = ").Append(k).Append('\n');buffer.Append(c.ToString());buffer.Append("");}}