The goal of this problem is to write a program similar to the one shown in the following screenshot:
To build this program, create the following four extension methods:
- StringToBytes: Converts a string into an array of bytes holding the string's Unicode data
- BytesToString: Converts a byte array holding Unicode data into a string
- BytesToHex: Converts a byte array into a hexadecimal string representing the bytes
- HexToBytes: Converts a hexadecimal string into a byte array
When the user clicks the button on the left, convert the entered text into a byte array and then display its hexadecimal representation. When the user clicks the button on the right, convert the hexadecimal string into a byte array and then convert that array back into the original string.