有没有办法将byte []转换为c#中的字符串 [英] Is there any way to convert byte[] to string in c#
本文介绍了有没有办法将byte []转换为c#中的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法将byte []直接转换为c#中的字符串
Is there any way to convert byte[] to string in c# directly
推荐答案
试试这个 -
Try this-
string myString = System.Text.Encoding.UTF8.GetString(myByteArray);
希望,它有助于:)
Hope, it helps :)
这篇关于有没有办法将byte []转换为c#中的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文