Пример #1
0
 /// Constructor with explicit type specification
 public Dump(object objectToDump, Type type, DumpSettings settings)
     : this(objectToDump, type, null, 0, settings)
 {
 }
Пример #2
0
 /// Constructor with explicit type specification
 public Dump(object objectToDump, DumpSettings settings)
     : this(objectToDump, null, null, 0, settings)
 {
 }
Пример #3
0
 /// Dump object to string, adding 'name=' prefix before output
 public static string ToDump <T>(T objectToDump, string name, DumpSettings settings)
 {
     return(ToDump(objectToDump, (objectToDump == null) ? typeof(T) : objectToDump.GetType(), name, settings));
 }
Пример #4
0
 /// Dump object to string, interpreting object as the object of type , adding 'name=' prefix before output
 public static string ToDump(object objectToDump, Type type, string name, int level, DumpSettings settings)
 {
     return(new Dump(objectToDump, type, name, level, settings).ToString());
 }
Пример #5
0
 /// Dump object to string
 public static string ToDump <T>(T objectToDump, DumpSettings settings)
 {
     return(ToDump <T>(objectToDump, null, settings));
 }