I remember seeing a while ago that there is some method in maybe the Reflection namespace that would recursively run ToString() on all of an object\'s propertie
You can write it by yourself. For example, serialize it into json using Newtonsoft's JSON.net library and write that json to console. Here is an example:
using Newtonsoft.Json;
static class Pretty
{
public static void Print (T x)
{
string json = JsonConvert.SerializeObject(x, Formatting.Indented);
Console.WriteLine(json);
}
}
Usage:
Pretty.Print(whatever);