DeepEqual.Bindings
1.0.0.4
See the version list below for details.
dotnet add package DeepEqual.Bindings --version 1.0.0.4
NuGet\Install-Package DeepEqual.Bindings -Version 1.0.0.4
<PackageReference Include="DeepEqual.Bindings" Version="1.0.0.4" />
paket add DeepEqual.Bindings --version 1.0.0.4
#r "nuget: DeepEqual.Bindings, 1.0.0.4"
// Install DeepEqual.Bindings as a Cake Addin
#addin nuget:?package=DeepEqual.Bindings&version=1.0.0.4
// Install DeepEqual.Bindings as a Cake Tool
#tool nuget:?package=DeepEqual.Bindings&version=1.0.0.4
DeepEqual.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.
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