Click or drag to resize

TransformerTToBytes Method (T, Encoding)

Transforms instance into a byte array.

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

Parameters

instance
Type: T
The instance that must be transformed.
encoding
Type: System.TextEncoding
The encoding that must be used to transform the instance into bytes.

Return Value

Type: Byte
The byte array that contains the transformed instance.
Exceptions
ExceptionCondition
ArgumentNullExceptioninstance is .
ArgumentNullExceptionencoding is .
See Also