Ejemplo n.º 1
0
        public XmlStreamDeserializationInfo()
        {
            _bufferSize        = 16384;
            _buffer            = new byte[_bufferSize];
            _surrogateSelector = new XmlSurrogateSelector();
            _surrogateSelector.TraceLoadedAssembliesForSurrogates();
            _xmlReader = _nullXmlReader;

            // Announce that an instance of the deserialization info was created.
            _instanceCreated.Target?.Invoke(this);
        }
        public XmlDocumentSerializationInfo(XmlDocument doc)
        {
            m_Doc = doc;
            m_SurrogateSelector = new XmlSurrogateSelector();
            m_SurrogateSelector.TraceLoadedAssembliesForSurrogates();
            m_NodeStack = new System.Collections.Stack();

            if (m_Doc.ChildNodes.Count > 0)
            {
                m_CurrentNode = (XmlElement)m_Doc.FirstChild;
            }
        }