开发者

How to convert System.Data.Linq.Binary to a Stream?

Thought I could use the BinaryWriter but haven't had any luck. Suggest开发者_Go百科ions?


You need an instance of a Stream derived class to provide the Stream implementation. MemoryStream is the ticket:

var stream = new MemoryStream(bin.ToArray());

where "bin" is your Binary instance.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜