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 / ParentQuery.cs / 1 / ParentQuery.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; using System.Globalization; using System.Collections.Generic; internal sealed class ParentQuery : CacheAxisQuery { public ParentQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) {} private ParentQuery(ParentQuery other) : base(other) { } public override object Evaluate(XPathNodeIterator context) { base.Evaluate(context); // XPathNavigator input; while ((input = qyInput.Advance()) != null) { input = input.Clone(); if (input.MoveToParent()) { if (matches(input)) { Insert(outputBuffer, input); } } } return this; } public override XPathNodeIterator Clone() { return new ParentQuery(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; using System.Globalization; using System.Collections.Generic; internal sealed class ParentQuery : CacheAxisQuery { public ParentQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) {} private ParentQuery(ParentQuery other) : base(other) { } public override object Evaluate(XPathNodeIterator context) { base.Evaluate(context); // XPathNavigator input; while ((input = qyInput.Advance()) != null) { input = input.Clone(); if (input.MoveToParent()) { if (matches(input)) { Insert(outputBuffer, input); } } } return this; } public override XPathNodeIterator Clone() { return new ParentQuery(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
- Membership.cs
- LifetimeServices.cs
- TraceHandler.cs
- BamlBinaryWriter.cs
- BindingObserver.cs
- base64Transforms.cs
- RIPEMD160Managed.cs
- UseAttributeSetsAction.cs
- ActivityXRefConverter.cs
- ToolStripPanelRenderEventArgs.cs
- LateBoundChannelParameterCollection.cs
- ListViewGroupConverter.cs
- AnnotationComponentManager.cs
- RuntimeVariablesExpression.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- TdsParserStaticMethods.cs
- DesignerTextWriter.cs
- Aggregates.cs
- WaitForChangedResult.cs
- TreeNodeCollection.cs
- FontWeight.cs
- ToolStripContainer.cs
- LateBoundBitmapDecoder.cs
- WeakHashtable.cs
- ByteKeyFrameCollection.cs
- RoleManagerModule.cs
- processwaithandle.cs
- Empty.cs
- MsmqInputSessionChannelListener.cs
- RowsCopiedEventArgs.cs
- HttpWebResponse.cs
- WebPartEventArgs.cs
- DiscoveryClientDocuments.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ScaleTransform.cs
- OptimalBreakSession.cs
- BuildProviderUtils.cs
- ObservableDictionary.cs
- HttpHandlerActionCollection.cs
- BrowserDefinition.cs
- Splitter.cs
- HttpRequestCacheValidator.cs
- BitStream.cs
- SafePointer.cs
- HttpCacheParams.cs
- QueryCacheEntry.cs
- DataGridViewCellStyleEditor.cs
- BufferAllocator.cs
- EdmItemCollection.cs
- ForeignKeyFactory.cs
- DependencyPropertyChangedEventArgs.cs
- BoundingRectTracker.cs
- IISMapPath.cs
- CapabilitiesUse.cs
- altserialization.cs
- StreamUpgradeAcceptor.cs
- login.cs
- ValueQuery.cs
- BuildResultCache.cs
- DesignTimeVisibleAttribute.cs
- ConfigurationManagerInternalFactory.cs
- HtmlShimManager.cs
- DataGridViewSelectedCellCollection.cs
- BaseProcessor.cs
- IDQuery.cs
- CreatingCookieEventArgs.cs
- XmlSchemas.cs
- Splitter.cs
- Animatable.cs
- TaiwanLunisolarCalendar.cs
- DATA_BLOB.cs
- SqlDataSourceView.cs
- Types.cs
- DataException.cs
- UnicodeEncoding.cs
- CodeAccessSecurityEngine.cs
- ValidationHelpers.cs
- HttpStaticObjectsCollectionWrapper.cs
- WebServiceParameterData.cs
- NullableDoubleSumAggregationOperator.cs
- CodeIdentifiers.cs
- SqlDataSourceCommandEventArgs.cs
- Button.cs
- ActionFrame.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- RuleSettingsCollection.cs
- ChannelTracker.cs
- DataGridViewTopLeftHeaderCell.cs
- AbstractDataSvcMapFileLoader.cs
- WebSysDescriptionAttribute.cs
- LoadWorkflowByKeyAsyncResult.cs
- MessageBodyMemberAttribute.cs
- WebZone.cs
- PointLight.cs
- DecimalAnimationUsingKeyFrames.cs
- NegationPusher.cs
- HtmlControlPersistable.cs
- CheckBox.cs
- DataError.cs
- HtmlElementCollection.cs