Name

EndOfStreamException

Synopsis

This exception is thrown if you attempt to read data from a stream at its end position.

public class EndOfStreamException : IOException {
// Public Constructors
   public EndOfStreamException( );
   public EndOfStreamException(string message);
   public EndOfStreamException(string message,
        Exception innerException);
// Protected Constructors
   protected EndOfStreamException(System.Runtime.Serialization.SerializationInfo info,
       System.Runtime.Serialization.StreamingContext context);
}

Hierarchy

System.Object System.Exception(System.Runtime.Serialization.ISerializable) System.SystemException IOException EndOfStreamException

Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.