首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

c# 向stream中写下字节

2013-06-26 
c# 向stream中写入字节Stream tstream new Stream()//这句是不对的,stream的构造函数是保护型的tstream

c# 向stream中写入字节
            Stream tstream = new Stream();//这句是不对的,stream的构造函数是保护型的
            tstream.WriteByte((byte)borderpoints);
            tstream.WriteByte((byte)x);
            tstream.WriteByte((byte)y);
我就想实现将边界点数和x,y的值传入流中,怎么实现?
[解决办法]
本帖最后由 bdmh 于 2013-06-14 10:38:45 编辑             System.IO.MemoryStream stream = new System.IO.MemoryStream();
            stream.Write.....

System.IO.Stream stream = new System.IO.MemoryStream();

热点排行