Ejemplo n.º 1
0
        private object ReadXml(TextReader reader, Type type)
        {
            var serializer = new MyXmlSerializer(type);
            var result     = serializer.Deserialize(reader);

            reader.Dispose();
            return(result);
        }
Ejemplo n.º 2
0
        private object ReadXml(XmlReader stream, Type type)
        {
            var serializer = new MyXmlSerializer(type);
            var result     = serializer.Deserialize(stream);

            stream.Dispose();
            return(result);
        }