GroupDocs.Comparison allows you to compare values from the String type variables.
To compare text from variables, follow these steps:
Instantiate the LoadOptions object. Set the LoadText property to true (this indicates that the passed string contains a text to be compared, not a file path).
Instantiate the Comparer object. Specify the source variable of the String type and the LoadOptions object created in the previous step.
Call the add() method. Specify the target variable of the String type and the LoadOptions object created in the previous step.
Call the Comparer method.
Call the getResultString method to get a string with the comparison result.
The following code snippet shows how to load values from variables: