Click or drag to resize
ExtTypeCodeMappingAdd Method
Adds the known ext type mapping.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public bool Add(
	string name,
	byte typeCode
)

Parameters

name
Type: SystemString
The name of the ext type.
typeCode
Type: SystemByte
The ext type code to be mapped.

Return Value

Type: Boolean
true if name AND typeCode were not registered and then newly registered; false, otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null.
ArgumentExceptionname is empty.
ArgumentOutOfRangeExceptiontypeCode is greater than 0x7F.
See Also