AvalonEdit
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
public:
static StreamReader^ OpenStream(
	Stream^ stream, 
	Encoding^ defaultEncoding
)
Parameters
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: 5.0.0.4238