public static void serialisieren(OceanLoadingParameter nout, string path) { XmlSerializer s = new XmlSerializer(typeof(OceanLoadingParameter)); TextWriter w = new StreamWriter(path); s.Serialize(w, nout); w.Close(); }
public static OceanLoadingParameter deserialisieren(string path) { XmlSerializer s = new XmlSerializer(typeof(OceanLoadingParameter)); TextReader r = new StreamReader(path); OceanLoadingParameter nout = (OceanLoadingParameter)s.Deserialize(r); r.Close(); return(nout); }