Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / XPath / Internal / ForwardPositionQuery.cs / 1 / ForwardPositionQuery.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; internal class ForwardPositionQuery : CacheOutputQuery { public ForwardPositionQuery(Query input) : base(input) { Debug.Assert(input != null); } protected ForwardPositionQuery(ForwardPositionQuery other) : base(other) { } public override object Evaluate(XPathNodeIterator context) { base.Evaluate(context); XPathNavigator node; while ((node = base.input.Advance()) != null) { outputBuffer.Add(node.Clone()); } return this; } public override XPathNavigator MatchNode(XPathNavigator context) { return input.MatchNode(context); } public override XPathNodeIterator Clone() { return new ForwardPositionQuery(this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; internal class ForwardPositionQuery : CacheOutputQuery { public ForwardPositionQuery(Query input) : base(input) { Debug.Assert(input != null); } protected ForwardPositionQuery(ForwardPositionQuery other) : base(other) { } public override object Evaluate(XPathNodeIterator context) { base.Evaluate(context); XPathNavigator node; while ((node = base.input.Advance()) != null) { outputBuffer.Add(node.Clone()); } return this; } public override XPathNavigator MatchNode(XPathNavigator context) { return input.MatchNode(context); } public override XPathNodeIterator Clone() { return new ForwardPositionQuery(this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataServiceConfiguration.cs
- ComponentEvent.cs
- AtlasWeb.Designer.cs
- XmlUtil.cs
- EventToken.cs
- Mapping.cs
- HtmlInputReset.cs
- HScrollBar.cs
- MobileComponentEditorPage.cs
- TextServicesDisplayAttribute.cs
- DataGridViewCellPaintingEventArgs.cs
- WebConfigurationFileMap.cs
- FixedTextContainer.cs
- WrapperEqualityComparer.cs
- TimeSpan.cs
- DbConnectionPoolCounters.cs
- Roles.cs
- HyperLinkColumn.cs
- MessagePropertyFilter.cs
- RelationshipConverter.cs
- XmlUrlResolver.cs
- ProtocolsSection.cs
- ExpressionVisitor.cs
- XmlHierarchyData.cs
- SqlDataSourceCache.cs
- safex509handles.cs
- ISAPIApplicationHost.cs
- SqlNotificationEventArgs.cs
- TrackingProfile.cs
- MasterPageBuildProvider.cs
- StringAnimationUsingKeyFrames.cs
- DoubleSumAggregationOperator.cs
- ScrollBarAutomationPeer.cs
- StaticFileHandler.cs
- SizeIndependentAnimationStorage.cs
- DesignerAutoFormatStyle.cs
- Mouse.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- querybuilder.cs
- X509CertificateCollection.cs
- ListMarkerSourceInfo.cs
- ProgressPage.cs
- AmbiguousMatchException.cs
- AuthorizationRule.cs
- DisposableCollectionWrapper.cs
- CaseInsensitiveComparer.cs
- ResizeBehavior.cs
- AutomationProperties.cs
- ChannelToken.cs
- ProfileGroupSettingsCollection.cs
- TextWriter.cs
- PatternMatchRules.cs
- GridViewCancelEditEventArgs.cs
- WebPartDisplayMode.cs
- SamlSecurityToken.cs
- UriParserTemplates.cs
- AlignmentXValidation.cs
- DataBoundControlHelper.cs
- CryptoProvider.cs
- DataBindEngine.cs
- UpdatePanelTriggerCollection.cs
- DtdParser.cs
- TemplatedAdorner.cs
- AddInActivator.cs
- ZoneLinkButton.cs
- PropertyConverter.cs
- DeleteIndexBinder.cs
- WindowsSysHeader.cs
- InputScopeManager.cs
- SimpleMailWebEventProvider.cs
- UpdateRecord.cs
- TemplateContainer.cs
- AgileSafeNativeMemoryHandle.cs
- ProviderCollection.cs
- NumericUpDownAccelerationCollection.cs
- Privilege.cs
- RoleGroup.cs
- AspCompat.cs
- XsltQilFactory.cs
- HttpAsyncResult.cs
- XmlEncodedRawTextWriter.cs
- MetadataSerializer.cs
- AttributeEmitter.cs
- MultiBindingExpression.cs
- UnsafeNativeMethods.cs
- StylusSystemGestureEventArgs.cs
- XhtmlBasicValidatorAdapter.cs
- FaultPropagationRecord.cs
- ExtendedPropertyDescriptor.cs
- GifBitmapEncoder.cs
- PlainXmlSerializer.cs
- DistinctQueryOperator.cs
- _UriTypeConverter.cs
- HashAlgorithm.cs
- NameValueCollection.cs
- SerializationEventsCache.cs
- FrameworkRichTextComposition.cs
- RoleManagerEventArgs.cs
- CompilerErrorCollection.cs
- TouchesCapturedWithinProperty.cs