Skip to content

Commit 472c4df

Browse files
committed
clrcore: serialize bytes as bytes
1 parent a46a691 commit 472c4df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/client/clrcore/MsgPackSerializer.cs

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ private static void Serialize(object obj, Packer packer)
7373
{
7474
packer.Pack(obj);
7575
}
76+
else if (obj is byte[] bytes)
77+
{
78+
packer.Pack(bytes);
79+
}
7680
else if (obj is IDictionary)
7781
{
7882
var dict = (IDictionary)obj;

0 commit comments

Comments
 (0)