Close() public method

public Close ( ) : void
return void
Exemplo n.º 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();
            }
        }
Exemplo n.º 2
0
#pragma warning restore 618

        internal static void ParseXmlDeclarationValue(string strValue, out string version, out string encoding, out string standalone)
        {
            version    = null;
            encoding   = null;
            standalone = null;
            XmlTextReaderImpl tempreader = new XmlTextReaderImpl(strValue, (XmlParserContext)null);

            try
            {
                tempreader.Read();
                //get version info.
                if (tempreader.MoveToAttribute(nameof(version)))
                {
                    version = tempreader.Value;
                }
                //get encoding info
                if (tempreader.MoveToAttribute(nameof(encoding)))
                {
                    encoding = tempreader.Value;
                }
                //get standalone info
                if (tempreader.MoveToAttribute(nameof(standalone)))
                {
                    standalone = tempreader.Value;
                }
            }
            finally
            {
                tempreader.Close();
            }
        }
 internal void Close(bool closeStream)
 {
     coreReaderImpl.Close(closeStream);
     parsingFunction = ParsingFunction.ReaderClosed;
 }
Exemplo n.º 4
0
        //
        // Input documents management
        //

        internal static XPathDocument LoadDocument(XmlTextReaderImpl reader)
        {
            reader.EntityHandling = EntityHandling.ExpandEntities;
            reader.XmlValidatingReaderCompatibilityMode = true;
            try
            {
                return new XPathDocument(reader, XmlSpace.Preserve);
            }
            finally
            {
                reader.Close();
            }
        }
Exemplo n.º 5
0
 public override void Close()
 {
     _impl.Close();
 }
Exemplo n.º 6
0
#pragma warning restore 618

        internal static void ParseXmlDeclarationValue(string strValue, out string version, out string encoding, out string standalone)
        {
            version = null;
            encoding = null;
            standalone = null;
            XmlTextReaderImpl tempreader = new XmlTextReaderImpl(strValue, (XmlParserContext)null);
            try
            {
                tempreader.Read();
                //get version info.
                if (tempreader.MoveToAttribute(nameof(version)))
                    version = tempreader.Value;
                //get encoding info
                if (tempreader.MoveToAttribute(nameof(encoding)))
                    encoding = tempreader.Value;
                //get standalone info
                if (tempreader.MoveToAttribute(nameof(standalone)))
                    standalone = tempreader.Value;
            }
            finally
            {
                tempreader.Close();
            }
        }
 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();
     }
 }