Getting started:
1. Install from NuGet:
You can get the library via NuGet if you have the extension installed for Visual Studio or via the PowerShell package manager. NuGet package SimpleObjectCompareDotNet.
PM> Install-Package SimpleObjectCompareDotNet
|
2. Use Comparer:
using SimpleObjectCompareDotNet;
var instance1 = new Simple { Test = "1" };
var instance2 = new Simple { Test = "2" };
var result = ObjectComparer.ComparePublicMembers(instance1, instance2);
3. Use ObjectMembersCollector:
using SimpleObjectCompareDotNet;
var instance = new Simple { Test = "1" };
var result = ObjectMembersCollector.Collect(instance);