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.
精彩评论