ToString() public method

public ToString ( ) : System.String
return System.String
示例#1
0
 public virtual void readFrame(int frameNo, Header header)
 {
     if ((frameNo == 0) && isDetail(VERBOSE_DETAIL))
     {
         //UPGRADE_TODO: The equivalent in .NET for method 'java.Object.toString' may return a different value. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1043"'
         System.String headerString = header.ToString();
         pw.WriteLine("File is a " + headerString);
     }
     else if (isDetail(MAX_DETAIL))
     {
         //UPGRADE_TODO: The equivalent in .NET for method 'java.Object.toString' may return a different value. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1043"'
         System.String headerString = header.ToString();
         pw.WriteLine("Read frame " + frameNo + ": " + headerString);
     }
 }
示例#2
0
            public virtual void decodedFrame(int frameNo, Header header, Obuffer o)
            {
                if (isDetail(MAX_DETAIL))
                {
                    //UPGRADE_TODO: The equivalent in .NET for method 'java.Object.toString' may return a different value. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1043"'
                    System.String headerString = header.ToString();
                    pw.WriteLine("Decoded frame " + frameNo + ": " + headerString);
                    pw.WriteLine("Output: " + o);
                }
                else if (isDetail(VERBOSE_DETAIL))
                {
                    if (frameNo == 0)
                    {
                        pw.Write("Converting.");
                        pw.Flush();
                    }

                    if ((frameNo % 10) == 0)
                    {
                        pw.Write('.');
                        pw.Flush();
                    }
                }
            }