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 istrue
, the prefix that determines the encoding will be added to the System.String instance.Overloaded method.
The extension method for the System.IO.MemoryStream class.
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