【问题标题】:Byte array debug字节数组调试
【发布时间】:2014-04-17 09:59:17
【问题描述】:

我想打印 debug 并查看此字节中包含的内容。

代码在这里

SoundEffect sound = new SoundEffect(stream.ToArray(), microphone.SampleRate, AudioChannels.Mono);

【问题讨论】:

    标签: c# .net json windows-phone-7 windows-phone-8


    【解决方案1】:

    要显示数据,您可以使用 BitConverter 类。

    string s = BitConverter.ToString(stream);
    

    【讨论】:

    • 我怎样才能使它成为一个 json 数组?那么's'将如何成为一个数组? stackoverflow.com/questions/20706783/…这种情况可以改一下吗
    • 字符串中的字节的工作方式如下:Encoding.GetBytes
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-23
    • 1970-01-01
    • 2020-03-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多