更新时间:2022-11-09 09:50:18
您可以提取包含单个数字的字符串(例如使用 Regex),将 Int16.Parse 应用于每个字符串,然后将其转换为字符.
You can extract strings containing individual numbers (using Regex for example), apply Int16.Parse to each and then convert it to a char.
string num = "0641"; // replace it with extracting logic of your preference
char c = (char)Int16.Parse(num, System.Globalization.NumberStyles.HexNumber);