Each of these expressions causes an exception:
byte.Parse("?")
byte.Parse("748")
byte.Parse("1200,00")
byte.Parse("11/10/2019")
byte.Parse("CHICOBEL")
e.g. byte.Parse("748") results in 'Value was either too large or too small for an unsigned byte.
e.g. byte.Parse("CHICOBEL") results in 'Input string was not in a correct format.'
Each argument must be a number which fits into the unsigned byte type.
'?' is not a number
'1200,00' is a number, but too big
'11/10/2019' is not a number
'CHICOBEL' is not a number
'748' is a number, but too big
As
Byte Struct in C# - GeeksforGeeks[
^] says a byte can hold a number between 0 and 255.
In order to split any data type to bytes you can use the BitConverter class:
BitConverter Class (System) | Microsoft Docs[
^]