.net 3.5 中深度/递归对象比较的 C# 实现 [英] C# implementation of deep/recursive object comparison in .net 3.5

查看:37
本文介绍了.net 3.5 中深度/递归对象比较的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆