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
- TriState.cs
- FontStyles.cs
- LockedHandleGlyph.cs
- PartitionResolver.cs
- XmlDocumentType.cs
- ObjectIDGenerator.cs
- RequestCachePolicy.cs
- AppDomain.cs
- ScriptMethodAttribute.cs
- WSHttpBindingElement.cs
- OpenTypeLayout.cs
- ParentUndoUnit.cs
- ForEachAction.cs
- CompositeActivityDesigner.cs
- CultureInfoConverter.cs
- TextTreeDeleteContentUndoUnit.cs
- CorrelationResolver.cs
- PropertyTab.cs
- RelationshipDetailsRow.cs
- HwndHostAutomationPeer.cs
- ResourcesGenerator.cs
- UserControlParser.cs
- DesignerCapabilities.cs
- CultureTable.cs
- NumericUpDownAcceleration.cs
- basecomparevalidator.cs
- WindowsStatic.cs
- SrgsElementList.cs
- WebConfigurationManager.cs
- Path.cs
- X509Certificate2.cs
- LayoutTable.cs
- HostProtectionException.cs
- ToolStripPanelRow.cs
- FontInfo.cs
- ResourceAssociationSetEnd.cs
- Simplifier.cs
- ServiceRouteHandler.cs
- SystemFonts.cs
- DictionaryGlobals.cs
- BooleanFunctions.cs
- IProvider.cs
- ReadWriteSpinLock.cs
- DictionaryBase.cs
- _TransmitFileOverlappedAsyncResult.cs
- ConfigurationLoaderException.cs
- ToolStripPanelSelectionGlyph.cs
- OverflowException.cs
- DesignBindingEditor.cs
- AutomationElementCollection.cs
- CodeIdentifier.cs
- BaseDataBoundControl.cs
- SoapAttributeOverrides.cs
- DataColumnMapping.cs
- Win32.cs
- CheckPair.cs
- PageThemeCodeDomTreeGenerator.cs
- HatchBrush.cs
- safesecurityhelperavalon.cs
- WindowManager.cs
- VirtualDirectoryMapping.cs
- VisualTarget.cs
- AspNetHostingPermission.cs
- DataColumnPropertyDescriptor.cs
- DrawingVisual.cs
- entityreference_tresulttype.cs
- ToolStripSplitButton.cs
- DashStyles.cs
- FeatureSupport.cs
- ExpressionBinding.cs
- HtmlTableCell.cs
- DetailsViewUpdateEventArgs.cs
- GenericRootAutomationPeer.cs
- InvalidProgramException.cs
- EventQueueState.cs
- HttpDebugHandler.cs
- UnsafeNativeMethods.cs
- XmlChildNodes.cs
- AlternationConverter.cs
- GeneratedCodeAttribute.cs
- CompilationSection.cs
- ColorTransform.cs
- CancellationScope.cs
- PagesChangedEventArgs.cs
- PerfCounters.cs
- TriggerActionCollection.cs
- PeerInvitationResponse.cs
- TextParagraphProperties.cs
- FileUpload.cs
- WebPartRestoreVerb.cs
- Span.cs
- SerializationObjectManager.cs
- ContentTextAutomationPeer.cs
- SqlDataSourceFilteringEventArgs.cs
- RC2.cs
- TextShapeableCharacters.cs
- ServicePointManagerElement.cs
- MailSettingsSection.cs
- DataComponentGenerator.cs
- XmlSchemaParticle.cs