Click or drag to resize
MessagePackSerializerTUnpackNil Method
Unpacks the nil value.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
protected virtual T UnpackNil()

Return Value

Type: T
A valid value of T which represents 'null' state.
Remarks

This method is invoked from UnpackFrom(Unpacker) method when the current LastReadData is nil.

The implementation of this class returns null for nullable types (that is, all reference types and NullableT); otherwise, throws SerializationException.

Custom serializers can override this method to provide custom nil representation. For example, built-in DBNull serializer overrides this method to return Value instead of null.

See Also