How to get the count of revisions after doc comparison?

Hi, Support:

I have a issue: after performing the doc comparing, and save the result. now, how to get the count of revisions in the result doc?
I want to get the count to know whether the two docs are similar.
How to work it out? Please help me !

Thanks!

@ducaisoft,

The following C# code of Aspose.Words for .NET API may be used to check if two Word documents are equal or not:

Document docA = new Document("TestFile.doc");
Document docB = new Document("TestFile - Copy.doc");
docA.Compare(docB, "user", DateTime.Now);
// DocA now contains changes as revisions. 
if (docA.Revisions.Count == 0)
    Console.WriteLine("Documents are equal");
else
    Console.WriteLine("Documents are not equal");