public ChangedFileInfo(MyFileInfo oldFile, MyFileInfo newFile) { if (oldFile.RelativePath != newFile.RelativePath) { throw new Exception("Error"); } _oldFile = oldFile; _newFile = newFile; }
private void BuildPatchFile(MyFileInfo oldFile, MyFileInfo newFile, string patchFile) { using (var outputStream = File.OpenWrite(patchFile)) BinaryPatchUtility.Create(oldFile.ReadBytes(), newFile.ReadBytes(), outputStream); }