示例#1
0
 public static string WriteData(T obj, string fullpath)
 {
     try
     {
         Helper_XML.SaveXml(fullpath, (object)obj);
         return((string)null);
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
示例#2
0
 public static void SaveXml(string filePath, object obj)
 {
     Helper_XML.SaveXml(filePath, obj, obj.GetType());
 }