GetResolver() приватный Метод

private GetResolver ( ) : XmlResolver
Результат XmlResolver
Пример #1
0
        // This is needed because we can't have the setter for XmlResolver public and with internal getter.
        private XmlResolver?GetResolver()
        {
            XmlResolver?tempResolver = _coreReaderImpl.GetResolver();

            if (tempResolver == null && !_coreReaderImpl.IsResolverSet)
            {
                // it is safe to return valid resolver as it'll be used in the schema validation
                return(s_tempResolver ??= new XmlUrlResolver());
            }

            return(tempResolver);
        }
Пример #2
0
        // This is needed because we can't have the setter for XmlResolver public and with internal getter.
        private XmlResolver GetResolver()
        {
            XmlResolver tempResolver = _coreReaderImpl.GetResolver();

            if (tempResolver == null && !_coreReaderImpl.IsResolverSet &&
                !System.Xml.XmlReaderSettings.EnableLegacyXmlSettings())
            {
                // it is safe to return valid resolver as it'll be used in the schema validation
                if (s_tempResolver == null)
                {
                    s_tempResolver = new XmlUrlResolver();
                }
                return(s_tempResolver);
            }

            return(tempResolver);
        }
 // This is needed because we can't have the setter for XmlResolver public and with internal getter.
 private XmlResolver GetResolver()
 {
     return(coreReaderImpl.GetResolver());
 }