Carubbi.DiffAnalyzer 2.0.0

dotnet add package Carubbi.DiffAnalyzer --version 2.0.0                
NuGet\Install-Package Carubbi.DiffAnalyzer -Version 2.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Carubbi.DiffAnalyzer" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Carubbi.DiffAnalyzer --version 2.0.0                
#r "nuget: Carubbi.DiffAnalyzer, 2.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Carubbi.DiffAnalyzer as a Cake Addin
#addin nuget:?package=Carubbi.DiffAnalyzer&version=2.0.0

// Install Carubbi.DiffAnalyzer as a Cake Tool
#tool nuget:?package=Carubbi.DiffAnalyzer&version=2.0.0                

Carubbi.DiffAnalyzer

Difference Analyzer between two instances

It's a component able to compare two instances of the same type and by reflection show the differences. Has a Asp.net webforms colorful panel to show these differences and highly configurable. You can set the depth of the object or to return specifc status of comparison like added, deleted, modified or unmodified.

Example:

With this two instances:

  var before = new Usuario
            {
                Id = 1,
                Nome = "Michael",
                Apelidos = new List<string>
                {
                    "Mike",
                    "MK"
                },
                Enderecos = new List<Endereco>
                {
                    new Endereco()
                    {
                        Logradouro = "1st street",
                        UF = new UF()
                        {
                            Nome = "SP",
                            Cidades = new[]
                            {
                                new Cidade
                                {
                                    Nome = "Sao Paulo"
                                },
                                new Cidade
                                {
                                    Nome =  "Santos"
                                }
                            },
                        },
                    },
                },
                Telefones =  new List<Telefone>
                {
                    new Telefone()
                    {
                        DDD = "11",
                        Numero = "91234-5678",
                        Tipo = TipoTelefone.Celular
                    }
                }
      
            };

            var after = new Usuario
            {
                Id = 1,
                Nome = "Michael",
                Apelidos = new List<string>
                {
                    "None",
                },
                Telefones = new List<Telefone>
                {
                    new Telefone()
                    {
                        DDD = "11",
                        Numero = "1234-5678",
                        Tipo = TipoTelefone.Comercial
                    }
                }

            };

Just call:

    var analyzer = new DiffAnalyzer();
    var results = analyzer.Compare(before, after);
Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 1,518 9/11/2018
1.0.0 850 8/21/2018