Click or drag to resize

TransformerTFromBytes Method (Byte, Encoding)

Transforms the content of a byte array into an instance of type T.

Namespace:  Enkoni.Framework.Serialization
Assembly:  Enkoni.Framework.Serialization (in Enkoni.Framework.Serialization.dll) Version: 1.3.0.1
Syntax
public T FromBytes(
	byte[] bytes,
	Encoding encoding
)

Parameters

bytes
Type: SystemByte
The byte array whose content must be transformed.
encoding
Type: System.TextEncoding
The encoding that must be used to transform the bytes.

Return Value

Type: T
The transformed instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionbytes is .
ArgumentNullExceptionencoding is .
ArgumentExceptionThe byte array has a length of zero.
See Also