在.NET 3.5深/递归对象比较的C#实现 [英] C# implementation of deep/recursive object comparison in .net 3.5
问题描述
我要寻找一个特定C#,开源(或源$ C $ C可用)执行递归,或深,对象比较的。
I am looking for a C# specific , open source (or source code available) implementation of recursive, or deep, object comparison.
我现在有活动对象的两个图是我期待的相互比较,有比较是一套在图不符的结果。对象是一组类,在运行时已知的(但不一定在编译时)的实例。
I currently have two graphs of live objects that I am looking to compare to each other, with the result of the comparison being a set of discrepancies in the graphs. The objects are instantiations of a set of classes that are known at run time (but not necessarily at compile time).
有一个具体的要求,以便能够从在图表的差异映射,返回到含有不符的物体。
There is a specific requirement to be able to map from the discrepancies in the graphs, back to the objects containing the discrepancies.
推荐答案
我发现在一个非常好的,免费实现 www.kellermansoftware .COM 所谓的比较,可以发现这里 .NET对象。强烈推荐。
I found a really nice, free implementation at www.kellermansoftware.com called Compare .NET Objects which can be found here. Highly recommended.
似乎已经搬迁到GitHub上 - 最新版本,请这里
Appears to have relocated to github - most recent version is available here
这篇关于在.NET 3.5深/递归对象比较的C#实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!