C#中數據類型轉換

C#中STRING 怎么转换成 LONG
long mylong = long.Parse(mystr);


在C# 中将byte转换为int和int转换为byte
int s = 100;
byte[] shi = System.BitConverter.GetBytes(s);
int sh = System.BitConverter.ToInt32(shi,0);

posted @ 2013-04-17 18:40  日光之下无新事  阅读(158)  评论(0编辑  收藏  举报