标签:on new as text c# rom c string system
C#中byte[]与string的转换 1、 System.Text.UnicodeEncoding converter = new System.Text.UnicodeEncoding(); byte[] inputBytes =converter.GetBytes(inputString); string inputString = converter.GetString(inputBytes); 2、 string inputString = System.Convert.ToBase64String(inputBytes); byte[] inputBytes = System.Convert.FromBase64String(inputString);
标签:on new as text c# rom c string system
原文地址:http://www.cnblogs.com/armyfai/p/4061689.html