public virtual String SerialisiereMetadataItem(SerialisierenTestable seriTestable, MetadataItem mdI)
        {
            XmlSerializer xmlseri      = new XmlSerializer(typeof(MetadataItem));
            StringWriter  stringwriter = new StringWriter();
            XmlWriter     writer       = XmlWriter.Create(stringwriter);

            xmlseri.Serialize(writer, mdI);

            var seriXml = stringwriter.ToString();

            writer.Close();

            return(seriXml);
        }
Esempio n. 2
0
        public MetadataItem deserealisiereMetadataItem(SerialisierenTestable seriTestable, String pfad)
        {
            var resultat = seriTestable.DeserealisiereMetadataItem(pfad);

            return(resultat);
        }
Esempio n. 3
0
        // LOGIK VERSCHOBBEN
        //
        //public String serealisieren(MetadataItem mdI)
        //{
        //    XmlSerializer xmlseri = new XmlSerializer(typeof(MetadataItem));
        //    StringWriter stringwrite = new StringWriter();
        //    XmlWriter xmlwrite = XmlWriter.Create(stringwrite);
        //    xmlseri.Serialize(xmlwrite, mdI);
        //    var seriXml = stringwrite.ToString();
        //    xmlwrite.Close();
        //    return seriXml;

        //}

        public String serealisiereMetaData(SerialisierenTestable seriTestable, MetadataItem mdI)
        {
            var resultat = seriTestable.SerialisiereMetadataItem(seriTestable, mdI);

            return(resultat);
        }
Esempio n. 4
0
 public DateiService()
 {
     seriTestable = new SerialisierenTestable();
 }