CSJ2K.Color.Boxes.ComponentMappingBox.ToString C# (CSharp) Method

ToString() public method

Return a suitable String representation of the class instance.
public ToString ( ) : System.String
return System.String
        public override System.String ToString()
        {
            System.Text.StringBuilder rep = new System.Text.StringBuilder("[ComponentMappingBox ").Append("  ");
            rep.Append("nChannels= ").Append(System.Convert.ToString(nChannels));
            System.Collections.IEnumerator Enum = map.GetEnumerator();
            //UPGRADE_TODO: Method 'java.util.Enumeration.hasMoreElements' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilEnumerationhasMoreElements'"
            while (Enum.MoveNext())
            {
                //UPGRADE_TODO: Method 'java.util.Enumeration.nextElement' was converted to 'System.Collections.IEnumerator.Current' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilEnumerationnextElement'"
                byte[] bfr = (byte[]) Enum.Current;
                rep.Append(eol).Append("  ").Append("CMP= ").Append(System.Convert.ToString(getCMP(bfr))).Append(", ");
                rep.Append("MTYP= ").Append(System.Convert.ToString(getMTYP(bfr))).Append(", ");
                rep.Append("PCOL= ").Append(System.Convert.ToString(getPCOL(bfr)));
            }
            rep.Append("]");
            return rep.ToString();
        }