Example #1
0
        /// <summary>
        /// Deserializes an object from the XML data in the specified stream.
        /// </summary>
        /// <param name="inStream">The stream containing the XML data.</param>
        /// <returns>The deserialized object.</returns>
        public object Deserialize(Stream inStream)
        {
            XDocument doc = XDocument.Load(XmlReader.Create(inStream));

            XleSerializationInfo info = new XleSerializationInfo(Binder, TypeSerializers, doc);

            return(info.BeginDeserialize());
        }