DeepEqual.Bindings by Ivan Kopcanski

<PackageReference Include="DeepEqual.Bindings" Version="1.0.0.1" />

Package Files

0 bytes

 DeepEqual.Bindings 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.

<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
  <metadata>
    <id>DeepEqual.Bindings</id>
    <version>1.0.0.1</version>
    <title>DeepEqual.Bindings</title>
    <authors>Ivan Kopcanski</authors>
    <owners>Ivan Kopcanski</owners>
    <licenseUrl>https://github.com/kopalite/DeepEqual.Bindings/blob/master/license.txt</licenseUrl>
    <projectUrl>https://github.com/kopalite/DeepEqual.Bindings</projectUrl>
    <requireLicenseAcceptance>true</requireLicenseAcceptance>
    <developmentDependency>true</developmentDependency>
    <description>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&lt;A1, A2&gt;.New()
.Bind(x1 =&gt; x1.B1, x2 =&gt; x2.B2);
var result = comparer.Compare(a1, a2); 
//result is true.</description>
    <summary>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.</summary>
    <releaseNotes>Available functionalities:
ExtendedComparer.Bind()
ExtendedComparer.Skip()
ExtendedComparer.Reversed()
Unit tests are added</releaseNotes>
    <copyright>Ivan Kopcanski 2016</copyright>
    <language>en-US</language>
    <tags>DeepEqual DeepEqual.Bindings AutoMapper ExpressMapper</tags>
    <dependencies>
      <group targetFramework=".NETFramework4.5.2">
        <dependency id="DeepEqual" version="(1.6.0.0,)" />
      </group>
    </dependencies>
    <frameworkAssemblies>
      <frameworkAssembly assemblyName="System" targetFramework=".NETFramework4.5.2" />
      <frameworkAssembly assemblyName="System.Core" targetFramework=".NETFramework4.5.2" />
      <frameworkAssembly assemblyName="System.Data" targetFramework=".NETFramework4.5.2" />
      <frameworkAssembly assemblyName="System.Data.DataSetExtensions" targetFramework=".NETFramework4.5.2" />
      <frameworkAssembly assemblyName="Microsoft.CSharp" targetFramework=".NETFramework4.5.2" />
    </frameworkAssemblies>
  </metadata>
</package>