public static void Write(object element, int maxDepth) { var dumper = new ObjectDumper(maxDepth); dumper.WriteObject(element, 0); }