DeepEqual.Bindings NuGet Package

DeepEqual.Bindings extends the idea of comparing 2 object graphs (DeepEqual library).


By default, nodes not matched by name between graphs make objects not equal.
With DeepEqual.Bindings you can override that behavior.
You can bind nodes with different names by specifying how they are compared by expression.


The most common usage looks like this:

var a1 = new A1 { B1 = new B1 { Y = "value" } };
var a2 = new A2 { B2 = new B2 { Y = "value" } };
var comparer = ExtendedComparer<A1, A2>.New()
.Bind(x1 => x1.B1, x2 => x2.B2);
var result = comparer.Compare(a1, a2);
//result is true.




Got any DeepEqual.Bindings Question?





Info

Version: 1.0.0.5
Author(s): Ivan Kopcanski
Last Update: Saturday, May 14, 2016
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/kopalite/DeepEqual.Bindings
NuGet Url: https://www.nuget.org/packages/DeepEqual.Bindings


Install
Install-Package DeepEqual.Bindings
dotnet add package DeepEqual.Bindings
paket add DeepEqual.Bindings
DeepEqual.Bindings Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.3

avg-downloads-per-day

1

days-since-last-release

2898