如何将十进制值转换为 AScii,我尝试过
var charStrs = Convert.ToString(receivedEvent.tagData.can_Msg.data[3]) +
Convert.ToString(receivedEvent.tagData.can_Msg.data[4]) +
Convert.ToString(receivedEvent.tagData.can_Msg.data[5]) +
Convert.ToString(receivedEvent.tagData.can_Msg.data[6]) +
Convert.ToString(receivedEvent.tagData.can_Msg.data[7]);
var asStr = String.Concat(charStrs.Select(cs => (char)Int32.Parse(cs, NumberStyles.HexNumber)));
我知道我的十进制数 = 56 49 50 48 48 48 53 56 50 56 并将其转换为 ascii 时我会得到 8120005828;但我在 NumberStyles.HexNumber 中出现错误,它似乎不适用于 wpf?