NuGet Gallery Feed for DeepEqual.BindingsDeepEqual.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.https://www.nuget.org/packages/DeepEqual.Bindings/2018-12-12T22:00:16Zhttps://www.nuget.org/packages/DeepEqual.Bindings/1.0.0.5DeepEqual.Bindings 1.0.0.52016-05-14T17:09:49Z2018-12-12T22:00:12Zkopalitehttps://www.nuget.org/profiles/kopaliteDeepEqual.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.https://www.nuget.org/packages/DeepEqual.Bindings/1.0.0.4DeepEqual.Bindings 1.0.0.42016-05-13T23:22:30Z2018-12-12T22:00:15Zkopalitehttps://www.nuget.org/profiles/kopaliteDeepEqual.Bindings extends the idea of comparing 2 object graphs (DeepEqual library). You can bind nodes with different names by specifying how they are compared by comparison 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.https://www.nuget.org/packages/DeepEqual.Bindings/1.0.0.3DeepEqual.Bindings 1.0.0.32016-05-13T22:54:44Z2018-12-12T22:00:16Zkopalitehttps://www.nuget.org/profiles/kopaliteThe 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.https://www.nuget.org/packages/DeepEqual.Bindings/1.0.0.2DeepEqual.Bindings 1.0.0.22016-05-13T22:35:42Z2018-12-12T22:00:15Zkopalitehttps://www.nuget.org/profiles/kopaliteThe 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.https://www.nuget.org/packages/DeepEqual.Bindings/1.0.0.1DeepEqual.Bindings 1.0.0.12016-05-13T21:38:40Z2018-12-12T22:00:15Zkopalitehttps://www.nuget.org/profiles/kopaliteDeepEqual.Bindings extends the idea of comparing 2 object graphs (DeepEqual library). By default, nodes with different name are considered different. Now, you can bind nodes with different names by specifying how they are compared by comparison 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.