TransformerTFromBytes Method (Byte, Int32, Int32, 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
Syntaxpublic T FromBytes(
	byte[] bytes,
	int offset,
	int length,
	Encoding encoding
)
Public Function FromBytes ( 
	bytes As Byte(),
	offset As Integer,
	length As Integer,
	encoding As Encoding
) As T
public:
T FromBytes(
	array<unsigned char>^ bytes, 
	int offset, 
	int length, 
	Encoding^ encoding
)
member FromBytes : 
        bytes : byte[] * 
        offset : int * 
        length : int * 
        encoding : Encoding -> 'T 
Parameters
- bytes
 - Type: SystemByte
The byte array whose content must be transformed. - offset
 - Type: SystemInt32
The offset from which to start reading bytes. - length
 - Type: SystemInt32
The number of bytes that must be read from the array. - encoding
 - Type: System.TextEncoding
The encoding that must be used to transform the bytes. 
Return Value
Type: 
TThe transformed instance.
Exceptions
See Also