Esempio n. 1
0
        public ChangedFileInfo(MyFileInfo oldFile, MyFileInfo newFile)
        {
            if (oldFile.RelativePath != newFile.RelativePath)
            {
                throw new Exception("Error");
            }

            _oldFile = oldFile;
            _newFile = newFile;
        }
Esempio n. 2
0
 private void BuildPatchFile(MyFileInfo oldFile, MyFileInfo newFile, string patchFile)
 {
     using (var outputStream = File.OpenWrite(patchFile))
         BinaryPatchUtility.Create(oldFile.ReadBytes(), newFile.ReadBytes(), outputStream);
 }