Skip to content

Commit

Permalink
Fix MPO represents ext type returns byte[] type for UnderlyingType pr…
Browse files Browse the repository at this point in the history
…operty. A part of #269.
  • Loading branch information
yfakariya committed Nov 11, 2017
1 parent 44a9446 commit b82627a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/MsgPack/MessagePackObject.Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,14 @@ public Type UnderlyingType
{
return asMps.GetUnderlyingType();
}
else if ( this._handleOrTypeCode is byte[] )
{
// It should be MPETO
#if DEBUG
Contract.Assert( ( this._value & 0xFFFFFFFFFFFFFF00 ) == 0, "( " + this._value.ToString( "X16" ) + " & 0xFFFFFFFFFFFFFF00 ) != 0" );
#endif // DEBUG
return typeof( MessagePackExtendedTypeObject );
}
else
{
return this._handleOrTypeCode.GetType();
Expand Down

0 comments on commit b82627a

Please sign in to comment.