text comparison/difference algorithm

2020-07-31 11:25发布

问题:

Is there a c# library/algorithm that compares 2 texts and displays what is different in them?

回答1:

See Diff.Net:

Diff.NET is a differencing utility I wrote in C#. It provides side-by-side differencing for files and directories. For files it also provides an overview diff and a line-to-line diff. And it can do a visual difference of binary files.