Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

StreamReader.EndOfStream Property

Definition

Namespace:
System.IO
Assemblies:
mscorlib.dll, System.IO.dll
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.IO.dll
Assembly:
System.Runtime.Extensions.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
StreamReader.cs
Source:
StreamReader.cs
Source:
StreamReader.cs
Source:
StreamReader.cs
Source:
StreamReader.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets a value that indicates whether the current stream position is at the end of the stream.

public:
 property bool EndOfStream { bool get(); };
public bool EndOfStream { get; }
member this.EndOfStream : bool
Public ReadOnly Property EndOfStream As Boolean

Property Value

true if the current stream position is at the end of the stream; otherwise false.

Exceptions

The underlying stream has been disposed.

Remarks

If the instance hasn't yet received an indication from the underlying stream that the stream has reached the end, the property will issue a synchronous read operation on the stream.

Applies to


Feedback

Was this page helpful?