コード例 #1
0
 public void Save(string filename)
 {
     using (FileStream outStream = new FileStream(filename, FileMode.Create))
     {
         MapFormatHelper.WriteToStream(this, outStream);
     }
 }
コード例 #2
0
 public byte[] ToBytes()
 {
     using (MemoryStream memory = new MemoryStream())
     {
         MapFormatHelper.WriteToStream(this, memory);
         return(memory.ToArray());
     }
 }