DeepEqual.Bindings
1.0.0.5
dotnet add package DeepEqual.Bindings --version 1.0.0.5
NuGet\Install-Package DeepEqual.Bindings -Version 1.0.0.5
<PackageReference Include="DeepEqual.Bindings" Version="1.0.0.5" />
paket add DeepEqual.Bindings --version 1.0.0.5
#r "nuget: DeepEqual.Bindings, 1.0.0.5"
// Install DeepEqual.Bindings as a Cake Addin #addin nuget:?package=DeepEqual.Bindings&version=1.0.0.5 // Install DeepEqual.Bindings as a Cake Tool #tool nuget:?package=DeepEqual.Bindings&version=1.0.0.5
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
- DeepEqual (>= 1.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Available functionalities:
ExtendedComparer.Bind()
ExtendedComparer.Skip()
ExtendedComparer.Reversed()
Unit tests are added.