コード例 #1
0
        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();
        }
コード例 #2
0
        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);
        }