Suppose I have this string
string str = \"1234\"
I need a function that convert this string to this string:
\"0x31 0x32 0x33
A nice declarative way to solve this would be:
var str = "1234" string.Join(" ", str.Select(c => $"0x{(int)c:X}")) // Outputs "0x31 0x32 0x33 0x34"