byte[] StrToByte(string strValue) { int length = strValue.Length; byte[] buffer = byte[length / ]; ((length % ) == ) { (int i = ; i < (length / ); i++) { buffer[i] = Convert.ToByte(strValue.Substring(i * , ), ); } } buffer; }本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/archive/2011/06/07/2074052.html,如需转载请自行联系原作者 |