コード例 #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);
 }