Platform Core .NET Assemblies API
ToString(MemoryStream,Encoding,Boolean) Method
See Also  Send Feedback
Terrasoft.Common Namespace > BytesToStringUtilities Class > ToString Method : ToString(MemoryStream,Encoding,Boolean) Method
source
Stream.
encoding
Encoding.
detectEncodingFromByteOrderMarks
true if the instance contains prefix that determines the encoding; else – false.

Glossary Item Box

Gets a System.String instance that is a string representation of the System.IO.MemoryStream type stream in the specified encoding. Instance may contain prefix that determines the encoding.

Syntax

 
C#
 
 

Parameters

source
Stream.
encoding
Encoding.
detectEncodingFromByteOrderMarks
true if the instance contains prefix that determines the encoding; else – false.

Return Value

A System.IO.MemoryStream instance that is a string representation of the source stream in the encoding encoding. If detectEncodingFromByteOrderMarks is true, the prefix that determines the encoding will be added to the System.String instance.

Remarks

Overloaded method.

The extension method for the System.IO.MemoryStream class.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.