DeepEqual.Bindings
1.0.0.1
See the version list below for details.
dotnet add package DeepEqual.Bindings --version 1.0.0.1
NuGet\Install-Package DeepEqual.Bindings -Version 1.0.0.1
<PackageReference Include="DeepEqual.Bindings" Version="1.0.0.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add DeepEqual.Bindings --version 1.0.0.1
#r "nuget: DeepEqual.Bindings, 1.0.0.1"
// Install DeepEqual.Bindings as a Cake Addin #addin nuget:?package=DeepEqual.Bindings&version=1.0.0.1 // Install DeepEqual.Bindings as a Cake Tool #tool nuget:?package=DeepEqual.Bindings&version=1.0.0.1
DeepEqual.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.
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5.2
- 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