Register a custom deserializer 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,
	Deserialize deserialize
)
Public Shared Function Register ( _
	typeCode As Integer, _
	type As Type, _
	deserialize As Deserialize _
) As Boolean
public:
static bool Register(
	int typeCode, 
	Type^ type, 
	Deserialize^ deserialize
)

Parameters

typeCode
Int32
The type code.
type
Type
The type.
deserialize
Deserialize
The deserialize 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 deserialize is null.
System..::..ArgumentException If typeCode is not in the valid range.

See Also