public void XMLSerilizationTest() { ObjectXMLCache <string> stuff = new ObjectXMLCache <string>("stuff", "", "filename"); print(stuff); stuff.Serialize(); }
/// <summary> /// Get the default config for the testing codes. /// - If the config files DNE, it will create a new XML file with /// default settings in it. /// - If the config files exists, it will load it; which is used /// by the dataconnection. /// </summary> /// <returns></returns> public static SQLConnConfig GetDefultConnectionConfig() { var defultconfig = SQLConnConfig.GetConfig(); var config = new ObjectXMLCache <SQLConnConfig> (defultconfig, "", "dbconn.config"); if (config.Deserialize()) { return(config.ObjectToStore); } Print("\n Config DNE, creating new config. \n"); config.Serialize(); return(defultconfig); }