Click or drag to resize

StreamReader(Stream, Boolean) Constructor

Initializes a new instance of the CrestronIO.StreamReader class for the specified stream, with the specified byte order mark detection option.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public StreamReader(
	Stream stream,
	bool detectEncodingFromByteOrderMarks
)

Parameters

stream  Stream
The stream to be read.
detectEncodingFromByteOrderMarks  Boolean
Indicates whether to look for byte order marks at the beginning of the file.
Exceptions
ExceptionCondition
ArgumentException stream does not support reading.
ArgumentNullException stream is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also