Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How can c# only convert data types without changing data values? For example, "0x53 0x55" of a string becomes byte[0]=0x53, and byte[ 1]=0x55.
How can c# only convert data types without changing data values? For example, "0x53 0x55" of a string becomes byte[0]=0x53, and byte[ 1]=0x55.
This specially formatted string can only be parsed by itself, right? -

Byte[] ary = array. ConvertAll & lt string, byte & gt ("0x53 0x55". Split(“”),delegate(string str){ return Convert。 ToByte(str, 16); });