Ejemplo n.º 1
0
        private static void DumpWithOptions(object obj, TextWriter writer, ObjectDumperFormatting options, string[] ignoreMembers, int maxDepth)
        {
            ObjectDumper dumper = new ObjectDumper(writer, options, ignoreMembers);

            dumper._maxDepth = maxDepth;
            writer.WriteLine(options.DumperHeader);
            dumper.Dump(obj);
        }
Ejemplo n.º 2
0
 public static void Dump(object obj, TextWriter writer, ObjectDumperFormatting options, string[] ignoreMembers, int maxDepth)
 {
     DumpWithOptions(obj, writer, options, ignoreMembers, maxDepth);
 }
Ejemplo n.º 3
0
 public static void Dump(object obj, TextWriter writer, ObjectDumperFormatting options, int maxDepth)
 {
     DumpWithOptions(obj, writer, options, DEFAULT_IGNORE_MEMBERS, maxDepth);
 }
Ejemplo n.º 4
0
 public static void Dump(object obj, TextWriter writer, ObjectDumperFormatting options, string[] ignoreMembers)
 {
     DumpWithOptions(obj, writer, options, ignoreMembers, DEFAULT_MAX_DEPTH);
 }
Ejemplo n.º 5
0
 public static void Dump(object obj, TextWriter writer, ObjectDumperFormatting options)
 {
     DumpWithOptions(obj, writer, options, DEFAULT_IGNORE_MEMBERS, DEFAULT_MAX_DEPTH);
 }
Ejemplo n.º 6
0
 private ObjectDumper(TextWriter writer, ObjectDumperFormatting formatting, string[] ignoreMembers)
     : this(writer)
 {
     _formatting    = formatting;
     _ignoreMembers = new List <string>(ignoreMembers);
 }