Пример #1
0
        public void SaveToStream(Stream stream)
        {
            var collection = new SpellMetadataCollection(this.Spells);
            var serializer = new XmlSerializer(typeof(SpellMetadataCollection));
            var namespaces = new XmlSerializerNamespaces();

            namespaces.Add("", "");

            serializer.Serialize(stream, collection, namespaces);
        }
Пример #2
0
        public void SaveToStream(Stream stream)
        {
            var collection = new SpellMetadataCollection(this.Spells);
              var serializer = new XmlSerializer(typeof(SpellMetadataCollection));
              var namespaces = new XmlSerializerNamespaces();
              namespaces.Add("", "");

              serializer.Serialize(stream, collection, namespaces);
        }