Пример #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);
        }
Пример #2
0
 public static void Dump(object obj, TextWriter writer, ObjectDumperFormatting options, string[] ignoreMembers, int maxDepth)
 {
     DumpWithOptions(obj, writer, options, ignoreMembers, maxDepth);
 }
Пример #3
0
 public static void Dump(object obj, TextWriter writer, ObjectDumperFormatting options, int maxDepth)
 {
     DumpWithOptions(obj, writer, options, DEFAULT_IGNORE_MEMBERS, maxDepth);
 }
Пример #4
0
 public static void Dump(object obj, TextWriter writer, ObjectDumperFormatting options, string[] ignoreMembers)
 {
     DumpWithOptions(obj, writer, options, ignoreMembers, DEFAULT_MAX_DEPTH);
 }
Пример #5
0
 public static void Dump(object obj, TextWriter writer, ObjectDumperFormatting options)
 {
     DumpWithOptions(obj, writer, options, DEFAULT_IGNORE_MEMBERS, DEFAULT_MAX_DEPTH);
 }
Пример #6
0
 private ObjectDumper(TextWriter writer, ObjectDumperFormatting formatting, string[] ignoreMembers)
     : this(writer)
 {
     _formatting    = formatting;
     _ignoreMembers = new List <string>(ignoreMembers);
 }