Serializes the object specified.

Namespace: Hypertable.Persistence.Serialization
Assembly: ht4o (in ht4o.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static byte[] ToByteArray(
	Type serializeType,
	Object value,
	int capacity
)
Public Shared Function ToByteArray ( _
	serializeType As Type, _
	value As Object, _
	capacity As Integer _
) As Byte()
public:
static array<unsigned char>^ ToByteArray(
	Type^ serializeType, 
	Object^ value, 
	int capacity
)

Parameters

serializeType
Type
The serialize type.
value
Object
The object to serialize.
capacity
Int32
The internal memory stream initial capacity.

Return Value

The serialized object.

See Also