示例#1
0
 public static void XmlSerializeToFile <T>(T obj, string path)
 {
     TextTasks.WriteAllText(path, XmlSerialize(obj));
 }
示例#2
0
 public static void JsonSerializeToFile <T>(T obj, string path, Configure <JsonSerializerSettings> configurator = null)
 {
     TextTasks.WriteAllText(path, JsonSerialize(obj, configurator));
 }
示例#3
0
 public static void YamlSerializeToFile(object obj, string path, Configure <SerializerBuilder> configurator = null)
 {
     TextTasks.WriteAllText(path, YamlSerialize(obj, configurator));
 }
示例#4
0
 public static void JsonSerializeToFile(object obj, string path)
 {
     TextTasks.WriteAllText(path, JsonSerialize(obj));
 }