protected virtual string ReadLine() { byte[] bs = null; LineParser linePaser = new LineParser(); ASCIIEncoding aSCIIEncoding = new ASCIIEncoding(); while ((bs = ReadByte()) != null) { linePaser.Write(aSCIIEncoding.GetChars(bs)); string strNextLine = linePaser.ReadLine(); if (strNextLine != null) { return(strNextLine); } } throw new Pop3ServerIncorectAnswerException(); }
protected virtual string ReadLine() { byte[] bs = null; LineParser linePaser = new LineParser(); ASCIIEncoding aSCIIEncoding = new ASCIIEncoding(); while ((bs = ReadByte()) != null) { linePaser.Write(aSCIIEncoding.GetChars(bs)); string strNextLine = linePaser.ReadLine(); if (strNextLine != null) { return strNextLine; } } throw new Pop3ServerIncorectAnswerException(); }