March 2004
Intermediate to advanced
560 pages
26h 47m
English
public class EndOfStreamException : IOException { // Constructors public EndOfStreamException (); public EndOfStreamException (string message); public EndOfStreamException (string message, Exception innerException); MS CF protected EndOfStreamException (SerializationInfo info, StreamingContext context); }
|
BA Our general rule on the use of Exceptions is that they are to be used in exceptional situations only. By exceptional we mean situations that the client will very likely have to write special case error handling code. So, is reading to the end of a stream an exceptional situation? Not if you are reading byte-by-byte through the stream; in such a case you always read the end of the stream, so that is not an exceptional situation. ... |
Read now
Unlock full access