Call ApplyChanges method and pass collection of changes to it.
Example of merge source code file by using GroupDocs.Comparison
For example, you need to compare and merge several versions of source code files and you need to accept or discard changes made by different persons.
The differences show that two methods are written in the source.cs file: AddNumbers and Sum.
If you did not use ComparisonAction, then in the resulting file, all changes will be committed, and these methods will be removed, but if you need to control the merging of files, the ComparisonAction property will help you with this.
Example of using ComparisonAction
The following code samples demonstrate how to merge two source code files.
Along with full-featured .NET library we provide simple, but powerful free Apps. You are welcome to compare your DOC or DOCX, XLS or XLSX, PPT or PPTX, PDF, EML, EMLX, MSG and other documents with free to use online GroupDocs Comparison App.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.