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