Register a custom serializer by the type and type code 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 bool Register(
	int typeCode,
	Type type,
	Serialize serialize
)
Public Shared Function Register ( _
	typeCode As Integer, _
	type As Type, _
	serialize As Serialize _
) As Boolean
public:
static bool Register(
	int typeCode, 
	Type^ type, 
	Serialize^ serialize
)

Parameters

typeCode
Int32
The type code.
type
Type
The type.
serialize
Serialize
The serialize delegate.

Return Value

true if the deserialize delegate has been registered successfully, otherwise false.

Exceptions

ExceptionCondition
System..::..ArgumentNullException If type is null.
System..::..ArgumentNullException If serialize is null.
System..::..ArgumentException If typeCode is not in the valid range.

See Also