public static T GetObject <T>(string path) { string xml = IOHelper.GetString(path); if (!string.IsNullOrEmpty(xml)) { return(DcsHelper.GetObject <T>(xml)); } return(default(T)); }
public static void SaveObject <T>(T o, string path) { string xml = DcsHelper.GetXml <T>(o); SaveString(path, xml); }