DeepEqual 4.2.1

.NET 6.0 .NET Core 3.1 .NET Standard 2.0
dotnet add package DeepEqual --version 4.2.1
NuGet\Install-Package DeepEqual -Version 4.2.1
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="DeepEqual" Version="4.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DeepEqual --version 4.2.1
#r "nuget: DeepEqual, 4.2.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install DeepEqual as a Cake Addin
#addin nuget:?package=DeepEqual&version=4.2.1

// Install DeepEqual as a Cake Tool
#tool nuget:?package=DeepEqual&version=4.2.1


DeepEqual is an extensible deep equality comparison library.


Install via NuGet (

Install-Package DeepEqual


To test equality simply call the IsDeepEqual extension method.

bool result = object1.IsDeepEqual(object2);

When used inside a test you might want to call ShouldDeepEqual instead. This method throws an exception with a detailed description of the differences between the 2 objects.


You can pass a custom comparison as the second argument to the ShouldDeepEqual method to override the default behaviour. You can also customize the behaviour inline using the WithDeepEqual extension method.

       .IgnoreSourceProperty(x => x.Id)
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (9)

Showing the top 5 NuGet packages that depend on DeepEqual:

Package Downloads

Test helpers


Shouldly like tool for asserting likeness based on James Fosters' DeepEqual library.


Tests for ExcelAbtraction implementations


DeepEqual.Bindings extends the idea of comparing 2 object graphs (DeepEqual library). By default, nodes not matched by name between graphs make objects not equal. With DeepEqual.Bindings you can override that behavior. You can bind nodes with different names by specifying how they are compared by 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. is a HTTPModule that can intercept incoming requests that match your API Blueprints and reply with your documented responses. As a mock server it enables you to rapidly work on your UI/UX without worrying about the back-end part of the project (just-yet)

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on DeepEqual:

Repository Stars
rhythm is just a *click* away!
Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP (Xamarin)...
SapphireDb Server, a self-hosted, easy to use realtime database for Asp.Net Core and EF Core
Faster than Any Binary? Benchmark:
Version Downloads Last updated
4.2.1 66,218 10/27/2022
4.2.0 360 10/27/2022
4.1.0 54,428 9/10/2022
4.0.1 38,546 8/20/2022
4.0.0 295 8/20/2022
3.0.0 326 8/20/2022
2.0.0 4,032,434 12/7/2018
1.7.1 55,830 12/4/2018
1.6.0 623,808 4/25/2016
1.5.1 29,870 3/8/2016
1.5.0 35,731 1/13/2016
1.4.0 28,492 3/22/2015
1.3.0 1,366 3/21/2015
1.2.0 1,380 3/21/2015
1.1.1 6,190 2/9/2015
1.1.0 5,061 9/22/2014
1.0.0 4,288 6/17/2014