Ejemplo n.º 1
0
 public T AddValue <T>(string name, T obj, params object[] indexes)
 {
     if (Settings.DumpTextFormat == TextFormatType.Xml)
     {
         Formatter.AppendItemWithContent(name, obj.ToString(), "id", GetIndexString(indexes));
     }
     else
     {
         Formatter.AppendItem("{0}{1}: {2}", GetIndexString(indexes), name, obj);
     }
     return(obj);
 }