Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / ForwardPositionQuery.cs / 1305376 / 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
- ProgressiveCrcCalculatingStream.cs
- COAUTHIDENTITY.cs
- RemotingServices.cs
- ProfileBuildProvider.cs
- AttachedPropertyMethodSelector.cs
- Substitution.cs
- ServiceDescriptions.cs
- ControlAdapter.cs
- AddInController.cs
- PolyQuadraticBezierSegment.cs
- WindowsFormsHelpers.cs
- DBCSCodePageEncoding.cs
- UnmanagedMemoryStreamWrapper.cs
- DocumentPageHost.cs
- MetadataCacheItem.cs
- IPGlobalProperties.cs
- PartialList.cs
- LayoutEngine.cs
- UpdateManifestForBrowserApplication.cs
- FieldDescriptor.cs
- HMACSHA512.cs
- ListViewContainer.cs
- ProxySimple.cs
- PaintValueEventArgs.cs
- SqlGatherConsumedAliases.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- InputEventArgs.cs
- VariableElement.cs
- DataGridViewDataErrorEventArgs.cs
- PolicyStatement.cs
- codemethodreferenceexpression.cs
- wgx_commands.cs
- ToolStripItemImageRenderEventArgs.cs
- HttpProxyTransportBindingElement.cs
- KeyInterop.cs
- filewebresponse.cs
- DependencyProperty.cs
- OrderedDictionary.cs
- ArglessEventHandlerProxy.cs
- PartManifestEntry.cs
- FreezableCollection.cs
- CompositeFontParser.cs
- HandledEventArgs.cs
- AdapterUtil.cs
- OLEDB_Enum.cs
- CacheMemory.cs
- PackagePartCollection.cs
- PipelineModuleStepContainer.cs
- ServiceModelConfigurationSection.cs
- EntityDataSourceQueryBuilder.cs
- MetadataHelper.cs
- CodeCommentStatementCollection.cs
- PersonalizationProvider.cs
- OdbcConnectionOpen.cs
- CompositeDataBoundControl.cs
- FixedTextBuilder.cs
- ArithmeticException.cs
- CheckBoxField.cs
- SystemFonts.cs
- DataGridViewCellCancelEventArgs.cs
- DataFormats.cs
- DbParameterHelper.cs
- IfAction.cs
- TypeInitializationException.cs
- SQLDouble.cs
- FrameworkContentElement.cs
- MenuAutoFormat.cs
- EventListener.cs
- StringValueSerializer.cs
- Cursor.cs
- XmlTypeAttribute.cs
- HealthMonitoringSection.cs
- OledbConnectionStringbuilder.cs
- HotSpotCollection.cs
- XamlTypeMapper.cs
- MergeLocalizationDirectives.cs
- WebConfigurationHostFileChange.cs
- InvalidateEvent.cs
- Timer.cs
- HandleCollector.cs
- DynamicVirtualDiscoSearcher.cs
- TheQuery.cs
- SaveFileDialog.cs
- CancellableEnumerable.cs
- UpdatePanelControlTrigger.cs
- BamlBinaryWriter.cs
- GenericXmlSecurityToken.cs
- SplitContainer.cs
- TextCompositionEventArgs.cs
- ReadOnlyDictionary.cs
- BitmapCodecInfoInternal.cs
- IFormattable.cs
- FormatException.cs
- IssuanceTokenProviderBase.cs
- PrePostDescendentsWalker.cs
- ProtocolsConfigurationHandler.cs
- COM2ExtendedUITypeEditor.cs
- HashStream.cs
- ImageSourceValueSerializer.cs
- ObjectReferenceStack.cs