Пример #1
0
        private object ReadXml(TextReader reader, Type type)
        {
            var serializer = new MyXmlSerializer(type);
            var result     = serializer.Deserialize(reader);

            reader.Dispose();
            return(result);
        }
Пример #2
0
        private object ReadXml(XmlReader stream, Type type)
        {
            var serializer = new MyXmlSerializer(type);
            var result     = serializer.Deserialize(stream);

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