Exemplo n.º 1
0
 /// <summary>
 /// Saves this action history to disk
 /// </summary>
 public void Save()
 {
     if (bModified)
     {
         DirectoryReference.CreateDirectory(Location.Directory);
         using (BinaryArchiveWriter Writer = new BinaryArchiveWriter(Location))
         {
             Writer.WriteInt(CurrentVersion);
             Writer.WriteDictionary(OutputItemToAttributeHash, Key => Writer.WriteFileItem(Key), Value => Writer.WriteFixedSizeByteArray(Value));
         }
         bModified = false;
     }
 }