Beispiel #1
0
        private static XmlDictionaryReader GetReaderAtSection(XmlBuffer buffer, int section)
        {
            if ((buffer == null) || (section < 0))
            {
                return(null);
            }
            XmlDictionaryReader reader = buffer.GetReader(section);

            reader.MoveToContent();
            reader.Read();
            return(reader);
        }
        private static XmlDictionaryReader GetReaderAtSection(XmlBuffer buffer, int section)
        {
            if (buffer == null || section < 0)
            {
                return(null);
            }

            XmlDictionaryReader reader = buffer.GetReader(section);

            reader.MoveToContent();
            Fx.Assert(reader.Name == DummyName, "EndpointAddress: Expected dummy element not found");
            reader.Read(); // consume the dummy wrapper element
            return(reader);
        }
        public XmlDictionaryReader GetReaderAtExtensions()
        {
            if (!_hasExtension)
            {
                return(_epr == null ? null : _epr.GetReaderAtExtensions());
            }

            if (_extensionBuffer == null)
            {
                return(null);
            }

            XmlDictionaryReader reader = _extensionBuffer.GetReader(0);

            reader.MoveToContent();
            Fx.Assert(reader.Name == EndpointAddress.DummyName, "EndpointAddressBuilder: Expected dummy element not found");
            reader.Read(); // consume the wrapper element
            return(reader);
        }
 private static XmlDictionaryReader GetReaderAtSection(XmlBuffer buffer, int section)
 {
     if ((buffer == null) || (section < 0))
     {
         return null;
     }
     XmlDictionaryReader reader = buffer.GetReader(section);
     reader.MoveToContent();
     reader.Read();
     return reader;
 }
Beispiel #5
0
        static XmlDictionaryReader GetReaderAtSection(XmlBuffer buffer, int section)
        {
            if (buffer == null || section < 0)
                return null;

            XmlDictionaryReader reader = buffer.GetReader(section);
            reader.MoveToContent();
            Fx.Assert(reader.Name == DummyName, "EndpointAddress: Expected dummy element not found");
            reader.Read(); // consume the dummy wrapper element
            return reader;
        }