# Get list of changes Retrieve a typed list of every detected difference using Comparer.GetChanges() — each ChangeInfo item exposes change type, page number, ID, and text in GroupDocs.Comparison for .NET. [GroupDocs.Comparison](https://products.groupdocs.com/comparison/net) allows you to get list of changes between source and target documents. To get list of changes, follow these steps: 1. Instantiate the [Comparer](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer) object. Specify the source document path or stream. 2. Call the [Add](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer/methods/add/index) method. Specify the target document path or stream. 3. Call the [Compare](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer/methods/compare) method. 4. Call the [GetChanges](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer/methods/getchanges) method. The no-argument Compare() call performs the comparison in-memory without writing a result file — use it when you only need the change list and do not need to save the marked-up document. The following code snippets show how to get list of all changes: ## Get list of changes from local disk {{< tabs "example1">}} {{< tab "C#" >}} ```csharp using GroupDocs.Comparison; using GroupDocs.Comparison.Options; // ... using (Comparer comparer = new Comparer("source.docx")) { comparer.Add("target.docx"); comparer.Compare(); ChangeInfo[] changes = comparer.GetChanges(); foreach (ChangeInfo change in changes) Console.WriteLine("Change Type: {0}, Page: {1}, Change ID: {2}, Text: {3}", change.Type, change.PageInfo.PageNumber, change.Id, change.Text ); } ``` {{< /tab >}} {{< /tabs >}} The result is as follows: ![](https://docs.groupdocs.com/comparison/net/images/get-changes-list.png) ## Get list of changes from stream {{< tabs "example2">}} {{< tab "C#" >}} ```csharp using GroupDocs.Comparison; using GroupDocs.Comparison.Options; using System.IO; // ... using (Comparer comparer = new Comparer(File.OpenRead("source.docx"))) { comparer.Add(File.OpenRead("target.docx")); comparer.Compare(); ChangeInfo[] changes = comparer.GetChanges(); foreach (ChangeInfo change in changes) Console.WriteLine("Change Type: {0}, Page: {1}, Change ID: {2}, Text: {3}", change.Type, change.PageInfo.PageNumber, change.Id, change.Text ); } ``` {{< /tab >}} {{< /tabs >}} ## See also - [Accept or reject detected changes]({{< ref "comparison/net/advanced-usage/comparison/accept-or-reject-detected-changes.md" >}}) - [Get extended information on the summary page]({{< ref "comparison/net/advanced-usage/comparison/get-extended-information-on-the-summary-page.md" >}}) - [Get changes coordinates]({{< ref "comparison/net/advanced-usage/comparison/get-changes-coordinates.md" >}}) - [Compare documents]({{< ref "comparison/net/comparison-basic/compare-documents.md" >}})