I have a string
"730C" and I need to get a INT big-endian
string packetString = "1F:73:0C:01:00:0E:01:01:29:35:1D:00:02:00:01:00:00:00:E7:03:0B:00:65:73:74:65:73:69:74:72:61:62:61:02:01:00:00:00:00";
string ChrIndx = packetString.Substring(3, 5);
string chrinx = ChrIndx.Replace(":", "");
// convertimos el texto a numero
int num = Int32.Parse(chrinx, System.Globalization.NumberStyles.HexNumber);
//Console.WriteLine(num);
//// Int a Byte
byte[] byteNumero = BitConverter.GetBytes(num);
////Pasamos de little a Big endian
if (!BitConverter.IsLittleEndian)
Array.Reverse(byteNumero); //reverse
int result = BitConverter.ToInt32(byteNumero, 0);
Console.WriteLine(result);