string hex = new SoapHexBinary(bytes).ToString(); byte[] bytes = SoapHexBinary.Parse(hex).Value;. Not sure how it compares (benchmark) to other ... ... <看更多>
There are popular topics on StackOverflow that cover this exact question: How do you convert Byte Array to Hexadecimal String, and vice versa? ... <看更多>