Skip to content

Commit 82bfb07

Browse files
committed
feat: 增加 byte 内置解析逻辑
1 parent 695a5bf commit 82bfb07

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/extensions/BootstrapBlazor.Socket/Extensions/DataPropertyExtensions.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ static class DataPropertyExtensions
2929
var type = attribute.Type;
3030
if (type != null)
3131
{
32-
if (type == typeof(byte[]))
32+
if (type == typeof(byte))
33+
{
34+
converter = new DataByteConverter();
35+
}
36+
else if (type == typeof(byte[]))
3337
{
3438
converter = new DataByteArrayConverter();
3539
}

0 commit comments

Comments
 (0)