//********************************************************************************************************************************************************************************************** /// <summary> /// Load a new SaveableObject from an XML file. /// </summary> /// <param name="xmlFilepath">XML file path.</param> /// <param name="decompress">use GZip for decompression or not</param> /// <returns>Loaded SaveableObject</returns> public static Tchild Load(string xmlFilepath, bool decompress) { return(SaveHelper.LoadObjectFromFile <Tchild>(xmlFilepath, decompress)); }
/// <summary> /// Save this instance of the SaveableObject to an XML file. /// </summary> /// <param name="xmlFilepath">XML file path.</param> /// <param name="compress">use GZip for compression or not</param> public void Save(string xmlFilepath, bool compress) { SaveHelper.SaveObjectToFile(this, xmlFilepath, compress); }