AlanNunes / ObjectDumper

Dumps an object by depth.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is AN.ObjectDumper ?

It is a package that you can use in your .NET projects, allowing you to dump objects for generating logs.

How to use it ?

Declare a string variable and call the static method Dump from ObjectDumper class

string result = "";
ObjectDumper.Dump(object obj, ref string result, int depth);

obj is the object you desire to dump.

result is where the dumper is going to be written.

depth is the depth of the dump. Usually depth = 1 is enough.

Nuget Package

Nuget package

About

Dumps an object by depth.


Languages

Language:C# 100.0%