コード例 #1
0
 public void WriteTo(Stream stream)
 {
     using (SubStream tmpstream = new SubStream(new MemoryStream()))
     {
         WriteTo(tmpstream);
         tmpstream.Seek(0, SeekOrigin.Begin);
         tmpstream.CopyTo(stream);
     }
 }
コード例 #2
0
 public void WriteTo(Stream stream)
 {
     using (SubStream tmpstream = new SubStream(new MemoryStream()))
     {
         WriteTo(tmpstream);
         tmpstream.Seek(0, SeekOrigin.Begin);
         tmpstream.CopyTo(stream);
     }
 }