Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TransformerInfo.cs
- URLBuilder.cs
- SlipBehavior.cs
- UdpChannelFactory.cs
- CompressEmulationStream.cs
- CodeSubDirectory.cs
- AttributeQuery.cs
- SoapSchemaMember.cs
- PaperSize.cs
- ExeConfigurationFileMap.cs
- OutputScopeManager.cs
- DynamicRendererThreadManager.cs
- CreateUserWizard.cs
- FixedSOMFixedBlock.cs
- RulePatternOps.cs
- ComponentCache.cs
- webeventbuffer.cs
- WindowsIdentity.cs
- EditorPartChrome.cs
- BrowserInteropHelper.cs
- IRCollection.cs
- FlowNode.cs
- XamlSerializer.cs
- CheckBoxRenderer.cs
- XmlSchemaGroupRef.cs
- XmlEnumAttribute.cs
- RadioButtonFlatAdapter.cs
- Attributes.cs
- sqlmetadatafactory.cs
- XmlFileEditor.cs
- StyleTypedPropertyAttribute.cs
- GridViewAutomationPeer.cs
- RemotingConfigParser.cs
- AlphabetConverter.cs
- ImageSourceValueSerializer.cs
- ItemCollection.cs
- WmiEventSink.cs
- storepermissionattribute.cs
- CreateParams.cs
- PrintDialogDesigner.cs
- EventTrigger.cs
- Constraint.cs
- WindowsListViewItem.cs
- RelationshipDetailsCollection.cs
- WorkflowOperationBehavior.cs
- ZoneIdentityPermission.cs
- CodeSubDirectoriesCollection.cs
- OrderedDictionaryStateHelper.cs
- InstanceCreationEditor.cs
- Point4D.cs
- MultipartContentParser.cs
- AsyncOperationManager.cs
- SynchronizingStream.cs
- ConfigXmlElement.cs
- FieldAccessException.cs
- EncodingNLS.cs
- ProcessModelSection.cs
- AssemblySettingAttributes.cs
- QueryReaderSettings.cs
- CompensationToken.cs
- ToolBarButton.cs
- ScrollViewerAutomationPeer.cs
- XmlImplementation.cs
- XPathNavigatorReader.cs
- HttpModuleCollection.cs
- CrossContextChannel.cs
- XmlSchemaAll.cs
- MessageQueuePermissionAttribute.cs
- PeerResolverBindingElement.cs
- MoveSizeWinEventHandler.cs
- GenerateTemporaryTargetAssembly.cs
- TypeInitializationException.cs
- Thumb.cs
- CutCopyPasteHelper.cs
- ImageConverter.cs
- OutputCacheProfile.cs
- HttpPostProtocolReflector.cs
- SubMenuStyleCollection.cs
- ClientFormsAuthenticationCredentials.cs
- Throw.cs
- XmlSchemaAttributeGroupRef.cs
- TextParagraph.cs
- TransformerInfoCollection.cs
- TabControl.cs
- AlphaSortedEnumConverter.cs
- ValidationRule.cs
- FormViewInsertEventArgs.cs
- HandlerFactoryWrapper.cs
- Panel.cs
- DataGridViewTopLeftHeaderCell.cs
- PriorityChain.cs
- PasswordBox.cs
- FileStream.cs
- ImmutableAssemblyCacheEntry.cs
- QuaternionAnimation.cs
- LocalIdCollection.cs
- TextServicesPropertyRanges.cs
- ProvidePropertyAttribute.cs
- CodeMemberEvent.cs
- DataGridViewComboBoxEditingControl.cs