Hexadecimal to 8-bit unsigned array in VB.NET
问题 I have a hexadecimal value, 07A5953EE7592CE8871EE287F9C0A5FBC2BB43695589D95E76A4A9D37019C8 Which I want to convert to a byte array. Is there a built-in function in .NET 3.5 that will get the job done or will I need to write a function to loop through each pair in the string and convert it to its 8-bit integer equivalent? 回答1: There is no built-in function that will do this. You will unfortunately have to code one up :( Public Function ToHexList(ByVal str As String) As List(Of Byte) Dim list