Table of Contents

Class ByteExtensions

Namespace
Songhay.Extensions
Assembly
SonghayCore.dll

Extensions of byte.

public static class ByteExtensions
Inheritance
ByteExtensions
Inherited Members

Methods

ToStreamReader(byte[])

Converts the specified byte array to a StreamReader with UTF8.

public static StreamReader ToStreamReader(this byte[] bytes)

Parameters

bytes byte[]

the bytes

Returns

StreamReader

ToStreamReader(byte[], Encoding)

Converts the specified byte array to a StreamReader.

public static StreamReader ToStreamReader(this byte[] bytes, Encoding encoding)

Parameters

bytes byte[]

the bytes

encoding Encoding

the encoding

Returns

StreamReader

Remarks

This member is useful in the world of ASP.NET when there is a need to read a string from the bytes of a MultipartSection".