C# compare algorithms [closed]

一笑奈何 提交于 2019-11-27 05:15:29

问题


Are there any open source algorithms in c# that solve the problem of creating a difference between two text files?

It would be super cool if it had some way of highlighting what exact areas where changed in the text document also.


回答1:


There's also a c# port of Google's (Neil Fraser) diff, match and patch.




回答2:


There is Menees Diff which will provide you with a C# diff implementation. The source code is included. I've used it in the past with good success wrapping it in my own implemenation.




回答3:


How about this one? : DIFFPLEX




回答4:


Check out diff. Here it is in the gnu project (open source, of course), and many more links to implementations are found in the wikipedia article. A comparison of different such programs is found here.




回答5:


check this link "good line by line Diff Algorithm " http://www.codeproject.com/KB/recipes/diffengine.aspx



来源:https://stackoverflow.com/questions/65199/c-sharp-compare-algorithms

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!