![]() |
VOOZH | about |
dotnet add package ObjectDumper.NET --version 4.3.2
NuGet\Install-Package ObjectDumper.NET -Version 4.3.2
<PackageReference Include="ObjectDumper.NET" Version="4.3.2" />
<PackageVersion Include="ObjectDumper.NET" Version="4.3.2" />Directory.Packages.props
<PackageReference Include="ObjectDumper.NET" />Project file
paket add ObjectDumper.NET --version 4.3.2
#r "nuget: ObjectDumper.NET, 4.3.2"
#:package ObjectDumper.NET@4.3.2
#addin nuget:?package=ObjectDumper.NET&version=4.3.2Install as a Cake Addin
#tool nuget:?package=ObjectDumper.NET&version=4.3.2Install as a Cake Tool
ObjectDumper is a utility which aims to serialize C# objects to string for debugging and logging purposes.
This library is available on NuGet: https://www.nuget.org/packages/ObjectDumper.NET/ Use the following command to install ObjectDumper using NuGet package manager console:
PM> Install-Package ObjectDumper.NET
You can use this library in any .NET project which is compatible to PCL (e.g. Xamarin Android, iOS, Windows Phone, Windows Store, Universal Apps, etc.)
Serialization, the process of converting a complex object to a machine-readable or over-the-wire transmittable string, is a technique often used in software engineering. A well-known serializer is Newtonsoft.JSON which serializes .NET objects to the data representation format JSON.
ObjectDumper.NET provides two excellent ways to visualize in-memory .NET objects:
The following sample program uses DumpStyle.Console to write C# objects to the console output:
static void Main(string[] args)
{
var persons = new List<Person>
{
new Person { Name = "John", Age = 20, },
new Person { Name = "Thomas", Age = 30, },
};
var personsDump = ObjectDumper.Dump(persons);
Console.WriteLine(personsDump);
Console.ReadLine();
}
//CONSOLE OUTPUT:
{ObjectDumperSample.Netfx.Person}
Name: "John"
Age: 20
{ObjectDumperSample.Netfx.Person}
Name: "Thomas"
Age: 30
The following sample program uses DumpStyle.CSharp to write C# initializer code from in-memory to the console output:
static void Main(string[] args)
{
var persons = new List<Person>
{
new Person { Name = "John", Age = 20, },
new Person { Name = "Thomas", Age = 30, },
};
var personsDump = ObjectDumper.Dump(persons, DumpStyle.CSharp);
Console.WriteLine(personsDump);
Console.ReadLine();
}
//CONSOLE OUTPUT:
var listOfPersons = new List<Person>
{
new Person
{
Name = "John",
Age = 20
},
new Person
{
Name = "Thomas",
Age = 30
}
};
This assembly is signed with the key ObjectDumper.snk in this repository.
Public key (hash algorithm: sha1):
00240000048000009400000006020000002400005253413100040000010001008da06ec8c6bd242c52102a9fc293b7af32f183da0d069f7c9522f063cacc3cc584668dfd6cf0560577380822b0c46fdb19e44fc78fad5e8d15b2c24a8766e2769c942705442926b3dcce385eac263893a4b6916976324544792ba1fb4697ab0d1bf28f3c8f0512234fa0a7b732141f7dc4b4a340bdaa95a6c1460c6a699e65c3
Public key token is fcc359471136d8b8.
In order to get these values, run following commands:
sn -p ObjectDumper.snk public.keysn -tp public.keyThis project is Copyright © 2023 Thomas Galliker. Free for non-commercial use. For commercial use please contact the author.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp1.0 netcoreapp1.0 was computed. netcoreapp1.1 netcoreapp1.1 was computed. netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard1.2 netstandard1.2 is compatible. netstandard1.3 netstandard1.3 was computed. netstandard1.4 netstandard1.4 was computed. netstandard1.5 netstandard1.5 was computed. netstandard1.6 netstandard1.6 was computed. netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 is compatible. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen30 tizen30 was computed. tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Universal Windows Platform | uap uap was computed. uap10.0 uap10.0 was computed. |
| Windows Phone | wpa81 wpa81 was computed. |
| Windows Store | netcore451 netcore451 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on ObjectDumper.NET:
| Package | Downloads |
|---|---|
|
SunamoReflection
Advanced reflection for faster development |
|
|
KarambaCommon
An interactive, parametric Finite Element program for beams and shells. |
|
|
MercadoPagoCore
The inofficial MercadoPagoCore SDK for .NetCoreApps |
|
|
CraxShared
Package Description |
|
|
klefki
An ASP.NET core client for the Klefki API |
Showing the top 9 popular GitHub repositories that depend on ObjectDumper.NET:
| Repository | Stars |
|---|---|
|
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
|
|
|
ahmedayman4a/Linkedin-Learning-Courses-Downloader
Download LinkedIn Learning Courses in mp4 format and in the video quality you like with an intuitive UI
|
|
|
lofcz/FastCloner
The fastest deep cloning library for .NET – zero-config, works out of the box.
|
|
|
thexeondev/WutheringWaves
Wuthering Waves ps (0.9.0)
|
|
| winsecurity/Offensive-C-Sharp | |
|
thomasgalliker/CameraScanner.Maui
Camera preview and barcode scanner for .NET MAUI apps
|
|
|
Sanae6/SmoOnlineServer
Official server for Super Mario Odyssey: Online
|
|
|
thomasgalliker/Plugin.FirebasePushNotifications
Receive and handle firebase push notifications in .NET MAUI apps
|
|
| lostb1t/jellyfin-plugin-collection-import |
| Version | Downloads | Last Updated |
|---|---|---|
| 4.4.13-pre | 376 | 4/2/2026 |
| 4.4.11-pre | 114 | 3/25/2026 |
| 4.4.10-pre | 363 | 1/13/2026 |
| 4.4.8-pre | 122 | 1/12/2026 |
| 4.4.7-pre | 607 | 12/8/2025 |
| 4.4.6-pre | 269 | 12/5/2025 |
| 4.4.5-pre | 226 | 12/4/2025 |
| 4.4.3-pre | 230 | 12/4/2025 |
| 4.4.1-pre | 207 | 12/4/2025 |
| 4.3.4-pre | 36,297 | 10/6/2024 |
| 4.3.2 | 362,531 | 9/14/2024 |
| 4.3.1-pre | 1,382 | 6/17/2024 |
| 4.3.0-pre | 404 | 5/24/2024 |
| 4.2.7 | 82,439 | 5/13/2024 |
| 4.2.6-pre | 257 | 5/13/2024 |
| 4.2.2-pre | 222 | 5/13/2024 |
| 4.2.1-pre | 252 | 5/9/2024 |
| 4.1.17 | 62,776 | 3/26/2024 |
| 4.1.16-pre | 1,912 | 3/11/2024 |
| 4.1.15 | 106,429 | 1/24/2024 |
4.2
- Bug fix for circular references in collections
- Internal refactoring to handle collection dumping more efficiently
- Print element count for IEnumerables for DumpStyle.Console
4.1
- Raise minimum .NET framework version from net45 to net48
- Remove support for net5.0
- Bug fix for constructorless record types
4.0
- Add support for C# record types
- Add assembly strong-naming
3.4
- Improve circular reference detection
3.3
- Bug fix for generic default value creation
- Bug fix for anonymous object dumping
3.2
- New versioning schema
3.1
- Add support for dumping anonymous types
- Add support for .NET 5
- Detect circular references for hash combinations h(value, type)
- Dump warning for circular references
- Performance improvement for property dumps
3.0
- New formatting logic for DumpStyle.Console (default)
- Bug fix for dumping decimal numbers in different cultures
- Dump MinValue, MaxValue for built-in types (where available)
2.5
- Handle CultureInfo formatting
- Extend GetFormattedName to handle nested generics and multi-dimensional arrays
- Optimize variable naming for generic types
2.4
- Handle Guid formatting
- Handle DateTimeOffset formatting
- Handle TimeSpan formatting
- Set LineBreakChar default to Environment.NewLine
2.3
- Fix escape sequences in string values
2.2
- Add bool property DumpOptions.IgnoreDefaultValues to filter properties which contain default values
- Refactor namespaces: Move ObjectDumper to root namespace
- Add support for netstandard2.0
2.0
- Migration to netstandard1.2
- Bug fixes
1.0
- Initial release
- Bugfix for .NET Standard: CSharp initializer code generation for KeyValuePairs is currently disabled in this release
- Change DateTime formatting to ISO 8601 standard
- Add formatting for IDictionary<TKey, TValue> and KeyValuePair<TKey, TValue>
- Replace long suffix 'l' with 'L'
- Optimization for DateTime.MinValue and DateTime.MaxValue serialization
- Bug fix: Use default dump options if not specified
- Add support for .NET Standard
- Add DumpOptions several serialization options, e.g. C#-like DumpStyle
- Bug fix: Filter COM objects
- Bug fix: Catch exceptions if properties/fields cannot be accessed
- Bug fix: Ignore non-public properties