string解析修改

master
smartwyy 5 months ago
parent 1d1eb53b10
commit e361d70e86

@ -53,7 +53,7 @@ public static class BitUtls
if (propertyType == STRING) if (propertyType == STRING)
{ {
return Convert.ChangeType(BytesToHexStr(bytes, start, length), propertyType); return Convert.ChangeType(Encoding.ASCII.GetString(bytes, start, length/8), propertyType);
} }
if (propertyType == BYTEARRAY) if (propertyType == BYTEARRAY)

Loading…
Cancel
Save