System.Xml.XmlTextReaderImpl.Close C# (CSharp) Méthode

Close() private méthode

private Close ( bool closeInput ) : void
closeInput bool
Résultat void
        internal void Close(bool closeInput)
        {
            if (_parsingFunction == ParsingFunction.ReaderClosed)
            {
                return;
            }

            while (InEntity)
            {
                PopParsingState();
            }

            _ps.Close(closeInput);

            _curNode = NodeData.None;
            _parsingFunction = ParsingFunction.ReaderClosed;
            _reportedEncoding = null;
            _reportedBaseUri = string.Empty;
            _readState = ReadState.Closed;
            _fullAttrCleanup = false;
            ResetAttributes();

            _laterInitParam = null;
        }

Same methods

XmlTextReaderImpl::Close ( ) : void

Usage Example

Exemple #1
0
        internal static void ParseXmlDeclarationValue(string strValue, out string version, out string encoding, out string standalone)
        {
            version    = null;
            encoding   = null;
            standalone = null;
            XmlTextReaderImpl impl = new XmlTextReaderImpl(strValue, null);

            try
            {
                impl.Read();
                if (impl.MoveToAttribute("version"))
                {
                    version = impl.Value;
                }
                if (impl.MoveToAttribute("encoding"))
                {
                    encoding = impl.Value;
                }
                if (impl.MoveToAttribute("standalone"))
                {
                    standalone = impl.Value;
                }
            }
            finally
            {
                impl.Close();
            }
        }
All Usage Examples Of System.Xml.XmlTextReaderImpl::Close
XmlTextReaderImpl