使用C#以字节为单位的会话 [英] Converssion in byte using C#

查看:86
本文介绍了使用C#以字节为单位的会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开发人员,

我想将Visual Studio 2005代码用于Visual Studio2003.
但我停留在下面的代码行中.

下面的代码行在VS 2005中给出了正确的输出,但在vs 2003中给出了错误的输出.
任何机构都可以说是下面代码行的准确解决方案.

Hi Developer,

I want to use the visual studio 2005 code to visual studio 2003.
but i stuck on the below line of code.

The below Line of code give the proper output in VS 2005 but its give the wrong in vs 2003.
Any body tell be exact solution for the below Line of code.

sbyte[] abyte6 = new sbyte[16];
byte[] bty = (byte[])(Array)abyte6;



问候,
Ravi Sharma



Regards,
Ravi Sharma

推荐答案

尝试以其他方式实现这一目标:
如何将字符串转换为sbyte数组. [ ^ ]
如何将sbyte转换为c中的字节 [ ^ ]
转换sbyte数组字节数组 [
Try to achive that in a different way:
How to convert string to sbyte array.[^]
how to convert a sbyte to byte in c[^]
convert sbyte array byte array[^]


这篇关于使用C#以字节为单位的会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆