OpenStream Method (stream, defaultEncoding)
NamespacesICSharpCode.AvalonEdit.UtilsFileReaderOpenStream(Stream, Encoding)
Opens the specified stream for reading.
Declaration Syntax
C#Visual BasicVisual C++
public static StreamReader OpenStream(
	Stream stream,
	Encoding defaultEncoding
Public Shared Function OpenStream ( _
	stream As Stream, _
	defaultEncoding As Encoding _
) As StreamReader
static StreamReader^ OpenStream(
	Stream^ stream, 
	Encoding^ defaultEncoding
stream (Stream)
The stream to open.
defaultEncoding (Encoding)
The encoding to use if the encoding cannot be auto-detected.
Return Value
Returns a StreamReader that reads from the stream. Use CurrentEncoding to get the encoding that was used.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: