AvalonEdit
ReadFileContent Method (stream, defaultEncoding)
NamespacesICSharpCode.AvalonEdit.UtilsFileReaderReadFileContent(Stream, Encoding)
Reads the content of the given stream.
Declaration Syntax
C#Visual BasicVisual C++
public static string ReadFileContent(
	Stream stream,
	Encoding defaultEncoding
)
Public Shared Function ReadFileContent ( _
	stream As Stream, _
	defaultEncoding As Encoding _
) As String
public:
static String^ ReadFileContent(
	Stream^ stream, 
	Encoding^ defaultEncoding
)
Parameters
stream (Stream)
The stream to read. The stream must support seeking and must be positioned at its beginning.
defaultEncoding (Encoding)
The encoding to use if the encoding cannot be auto-detected.
Return Value
The file content as string.

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