https://github.com/rcarubbi/carubbi.diffanalyzer
Difference Analyzer between two instances
https://github.com/rcarubbi/carubbi.diffanalyzer
analyzer diff diff-viewer diffing
Last synced: 5 months ago
JSON representation
Difference Analyzer between two instances
- Host: GitHub
- URL: https://github.com/rcarubbi/carubbi.diffanalyzer
- Owner: rcarubbi
- Created: 2018-08-20T18:42:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-11T16:28:15.000Z (over 7 years ago)
- Last Synced: 2025-06-10T00:49:42.260Z (10 months ago)
- Topics: analyzer, diff, diff-viewer, diffing
- Language: C#
- Size: 35.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```csharp
var before = new Usuario
{
Id = 1,
Nome = "Michael",
Apelidos = new List
{
"Mike",
"MK"
},
Enderecos = new List
{
new Endereco()
{
Logradouro = "1st street",
UF = new UF()
{
Nome = "SP",
Cidades = new[]
{
new Cidade
{
Nome = "Sao Paulo"
},
new Cidade
{
Nome = "Santos"
}
},
},
},
},
Telefones = new List
{
new Telefone()
{
DDD = "11",
Numero = "91234-5678",
Tipo = TipoTelefone.Celular
}
}
};
var after = new Usuario
{
Id = 1,
Nome = "Michael",
Apelidos = new List
{
"None",
},
Telefones = new List
{
new Telefone()
{
DDD = "11",
Numero = "1234-5678",
Tipo = TipoTelefone.Comercial
}
}
};
```
Just call:
```csharp
var analyzer = new DiffAnalyzer();
var results = analyzer.Compare(before, after);
```