I think this change is incorrect.  

If the stream is not seekable, there is no way to back up from the peek,
and peek is not supposed to consume. Besides, the MS docs on the method
explicitly state that -1 is supposed to be returned if Peek is called on
a non-seekable stream.

Mike 

--- Begin Message ---

CVSROOT:        /cvs/public
Module name:    mcs
Changes by:     gonzalo 02/07/02 14:17:53

Modified files:
        class/corlib/System.IO: ChangeLog StreamReader.cs 

Log message:
2002-07-02  Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

* StreamReader.cs:
(Peek): no need to have seek capabilitites.


_______________________________________________
Mono-cvs-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-cvs-list

--- End Message ---

Reply via email to