Beispiel #1
0
 public static StreamWriter Dump([NotNull] this StreamWriter w, [CanBeNull] object value, int indent = 0)
 {
     // If we have a value type just call its ToString.
     if (value is ValueType)
     {
         w.Write(value);
     }
     else
     {
         w.AppendValue(value, indent);
     }
     return(w);
 }