Attempts to write a type code for the type 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 TryWriteTypeCode(
	BinaryWriter binaryWriter,
	Type type,
	bool writeTag
)
Public Shared Function TryWriteTypeCode ( _
	binaryWriter As BinaryWriter, _
	type As Type, _
	writeTag As Boolean _
) As Boolean
public:
static bool TryWriteTypeCode(
	BinaryWriter^ binaryWriter, 
	Type^ type, 
	bool writeTag
)

Parameters

binaryWriter
BinaryWriter
The binary writer.
type
Type
The type.
writeTag
Boolean
If true the encoder writes the leading type tag, otherwise false.

Return Value

true if the type code has been successfully written, otherwise false.

See Also